JSON Formatter
Paste JSON to validate, format, or minify it — with exact error locations.
How to use the JSON formatter
- Paste your JSON into the input box — or press Sample to load an example.
- Choose an indent size (2 spaces, 4 spaces, or a tab) for pretty-printing.
- Press Format, Minify, or Validate. Format indents it readably; Minify compresses it to one line; Validate checks it and points at the exact line and column of any error.
- Copy or download. Grab the result for your code or save it as a .json file.
Frequently asked questions
What is JSON?
JavaScript Object Notation: a text format for structured data — objects in curly braces, arrays in square brackets, with string keys and values that are strings, numbers, booleans, null, arrays, or objects.
Why does my JSON fail validation?
The usual culprits are trailing commas, single quotes instead of double quotes, unquoted keys, comments, or a missing closing brace. The validator reports the exact line and column where parsing stopped.
What do the line and column numbers mean?
The precise position in your input where the parser first hit something invalid. Look just before that spot — the real mistake (like a missing comma) is usually right there.
What is the difference between Format and Minify?
Format pretty-prints JSON with indentation and line breaks so humans can read it. Minify strips all unnecessary whitespace into one compact line for smaller payloads and faster transfers.
Is my data sent anywhere?
No. Validation and formatting run entirely in your browser; nothing you paste leaves the page or is stored.
More from the codex
JSON Formatter
Validate, format, and minify JSON privately.
Citation Generator
Accurate citations in APA 7th, MLA 9th, Chicago, and Harvard. Websites, books, journals, YouTube — with URL, DOI, and ISBN auto-lookup.
Open tool → LiveGPA Calculator
Semester and cumulative GPA with weighted scales, plus a planner that tells you exactly what you need to hit your target.
Open tool → LiveWord Counter
Count words and estimate reading time instantly.
Open tool → LiveGrade Calculator
“What do I need on my final?” — answered.
Open tool → LivePomodoro Timer
Focus sessions with clean, simple timing.
Open tool → LiveRandom Student Picker
Fair, no-repeat classroom picker for teachers.
Open tool → LiveScientific Calculator
Trig, logs, powers, factorials — full keypad.
Open tool → LivePercentage Calculator
Percent of, percent change, increase/decrease.
Open tool → LiveUnit Converter
Length, weight, temperature, and more.
Open tool → LiveTyping Speed Test
Measure your words per minute and accuracy.
Open tool → LiveStudent Budget Calculator
Plan spending on a student budget.
Open tool → LiveAttendance Calculator
How many classes can you miss and still pass?
Open tool → LiveTip Calculator
Split the bill fairly in seconds.
Open tool → LivePassword Generator
Strong, random passwords on demand.
Open tool → LiveCase Converter
UPPER, lower, Title Case and more.
Open tool → LiveCountdown Timer
Count down to exams, deadlines, events.
Open tool → LiveFlashcard Maker
Spaced-repetition flashcards for any subject.
Open tool → LiveResume Builder
Clean templates, export to PDF.
Open tool → LivePDF Tools
Merge and compress PDFs for submissions.
Open tool → LiveTimetable Maker
Build your weekly class schedule.
Open tool → LiveText-to-Speech Reader
Hear your essay read aloud for proofreading.
Open tool → LiveAge Calculator
How old are you, exactly? Years, months, days.
Open tool → LiveDate Calculator
Days between dates, plus date arithmetic.
Open tool → LiveBMI Calculator
Body mass index with healthy-range guidance.
Open tool → LiveLoan Calculator
Monthly payments, interest, amortization table.
Open tool → LiveCompound Interest Calculator
Project savings growth with contributions.
Open tool → LiveQR Code Generator
Free QR codes for URLs and text. PNG download.
Open tool → LiveLorem Ipsum Generator
Placeholder text by paragraph or word.
Open tool → LivePeriodic Table
Interactive table of all 118 elements.
Open tool → LiveTime Zone Converter
Convert times across zones; plan meetings.
Open tool → LiveColor Picker
Hex/RGB/HSL converter, palettes, contrast checker.
Open tool → LiveRandom Number Generator
Random numbers, dice, coin flip, shuffler.
Open tool → LiveStopwatch
Precision stopwatch with lap times.
Open tool → LiveBase64 Encoder
Encode and decode Base64, URL-safe too.
Open tool →Support the codex
This tool is free, with no account and no ads. If it saved you some time, consider supporting the indie dev behind it.