Money & metals

Live Gold Prices Live Silver Prices Currency Converter Loan & Mortgage Percentage Calculator Tip Calculator

Convert & measure

Unit Converter Age Calculator BMI Calculator Unix Timestamp

Words & text

Word Unscrambler Word Counter Case Converter

Developer

JSON Formatter Base64 Encoder Hash Generator Color Converter Password Generator

More

Numerology Calculator Guides & Resources About Tiger Tools Contact us

JSON Formatter & Validator

Beautify, minify and validate JSON — all in your browser.

Working with JSON

JSON (JavaScript Object Notation) is the most common format for exchanging data between apps and APIs. This tool does three things: beautify re-indents JSON so it’s readable, minify strips whitespace so it’s as small as possible, and validate checks the syntax and points to the first error. Everything happens in your browser, so even sensitive payloads stay private. Pair it with our Base64 tool when APIs hand you encoded data.

What valid JSON allows

JSON is deliberately small: objects, arrays, strings, numbers, true, false and null. Most errors come from writing JavaScript rather than JSON.

Not allowed in JSONWhy
Trailing comma after the last itemThe grammar has no place for it
Single-quoted stringsStrings must use double quotes
Unquoted keysEvery key is a double-quoted string
CommentsNo comment syntax exists — strip them before parsing
NaN, Infinity, undefinedNot JSON values; use null
Leading zeros or a bare leading dotNumbers follow a strict grammar: 0.5, not .5
Literal tabs or newlines inside stringsMust be escaped as \t and \n

Reading an error message

Parsers report the character offset where the grammar broke, which is usually just after the real mistake. “Unexpected token } at position 214” typically means a trailing comma sat at position 213. Beautify first: with consistent indentation, a missing brace or bracket becomes visible as a block that never closes.

Beautify, minify, validate

  • Beautify re-indents so structure is legible — what you want while debugging an API response.
  • Minify strips all insignificant whitespace. On a large payload this often cuts 15–30% of bytes, though gzip narrows the gap considerably.
  • Validate confirms the document parses at all. It cannot tell you whether the shape is right — that is what JSON Schema is for.

Two subtleties that bite in production

Large integers. JSON numbers have no size limit, but JavaScript parses them as 64-bit floats, so IDs beyond 2⁵³ silently lose precision. Transmit long identifiers as strings.

Key order and duplicates. Objects are unordered by specification, so never depend on the order of keys surviving a round trip. Duplicate keys are technically undefined behaviour; most parsers keep the last one.

For very large documents, prefer a streaming parser or newline-delimited JSON (one object per line) so consumers do not need the entire payload in memory at once.

Nothing leaves your browser

Parsing and formatting happen locally, so it is safe to paste internal payloads. No content is uploaded or logged.

JSON FAQ

What does a JSON formatter do?
It re-indents JSON so the structure is readable, can strip whitespace to minify it, and reports the exact position of any syntax error.
Is my JSON uploaded anywhere?
No. Parsing and formatting run entirely in your browser, so pasted data never leaves your device.
Why does my JSON say unexpected token?
Almost always a trailing comma, a single-quoted string, an unquoted key, or a comment. The reported position is usually just after the actual mistake.
Are comments allowed in JSON?
No. The JSON specification has no comment syntax. Remove comments before parsing, or use a format such as JSON5 or YAML if you need them.
Why do large ID numbers change value?
JavaScript parses JSON numbers as 64-bit floats, so integers above 2 to the power of 53 lose precision. Send long identifiers as strings instead.
Does minifying JSON matter if I use gzip?
Less than it used to. Minifying typically saves 15 to 30 percent of raw bytes, but gzip already compresses repeated whitespace efficiently, so the net gain over the wire is smaller.

Recently used

Jump back in