JSON Formatter

Paste JSON to validate, format, or minify it — with exact error locations.

How to use the JSON formatter

  1. Paste your JSON into the input box — or press Sample to load an example.
  2. Choose an indent size (2 spaces, 4 spaces, or a tab) for pretty-printing.
  3. 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.
  4. 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

You’re here

JSON Formatter

Validate, format, and minify JSON privately.

Live

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 →
Live

GPA Calculator

Semester and cumulative GPA with weighted scales, plus a planner that tells you exactly what you need to hit your target.

Open tool →
Live

Word Counter

Count words and estimate reading time instantly.

Open tool →
Live

Grade Calculator

“What do I need on my final?” — answered.

Open tool →
Live

Pomodoro Timer

Focus sessions with clean, simple timing.

Open tool →
Live

Random Student Picker

Fair, no-repeat classroom picker for teachers.

Open tool →
Live

Scientific Calculator

Trig, logs, powers, factorials — full keypad.

Open tool →
Live

Percentage Calculator

Percent of, percent change, increase/decrease.

Open tool →
Live

Unit Converter

Length, weight, temperature, and more.

Open tool →
Live

Typing Speed Test

Measure your words per minute and accuracy.

Open tool →
Live

Student Budget Calculator

Plan spending on a student budget.

Open tool →
Live

Attendance Calculator

How many classes can you miss and still pass?

Open tool →
Live

Tip Calculator

Split the bill fairly in seconds.

Open tool →
Live

Password Generator

Strong, random passwords on demand.

Open tool →
Live

Case Converter

UPPER, lower, Title Case and more.

Open tool →
Live

Countdown Timer

Count down to exams, deadlines, events.

Open tool →
Live

Flashcard Maker

Spaced-repetition flashcards for any subject.

Open tool →
Live

Resume Builder

Clean templates, export to PDF.

Open tool →
Live

PDF Tools

Merge and compress PDFs for submissions.

Open tool →
Live

Timetable Maker

Build your weekly class schedule.

Open tool →
Live

Text-to-Speech Reader

Hear your essay read aloud for proofreading.

Open tool →
Live

Age Calculator

How old are you, exactly? Years, months, days.

Open tool →
Live

Date Calculator

Days between dates, plus date arithmetic.

Open tool →
Live

BMI Calculator

Body mass index with healthy-range guidance.

Open tool →
Live

Loan Calculator

Monthly payments, interest, amortization table.

Open tool →
Live

Compound Interest Calculator

Project savings growth with contributions.

Open tool →
Live

QR Code Generator

Free QR codes for URLs and text. PNG download.

Open tool →
Live

Lorem Ipsum Generator

Placeholder text by paragraph or word.

Open tool →
Live

Periodic Table

Interactive table of all 118 elements.

Open tool →
Live

Time Zone Converter

Convert times across zones; plan meetings.

Open tool →
Live

Color Picker

Hex/RGB/HSL converter, palettes, contrast checker.

Open tool →
Live

Random Number Generator

Random numbers, dice, coin flip, shuffler.

Open tool →
Live

Stopwatch

Precision stopwatch with lap times.

Open tool →
Live

Base64 Encoder

Encode and decode Base64, URL-safe too.

Open tool →