Sign in

File tools that never upload your files

JSON formatter and validator

Make an unreadable one-line API response readable, shrink a configuration file, or find the missing comma that breaks your JSON. The JSON is processed in your browser, so it never leaves your device — tokens and keys included.

5 free data and file results; text tools such as the JSON formatter never count. Paid plans have no usage limits.

How it works

  1. 1

    Paste the JSON

    Paste it into the box.

  2. 2

    Choose a format

    Pretty with 2 or 4 spaces, with tabs, or minified.

  3. 3

    Copy the result

    Copy it with one click; errors are shown with their position.

Why work without uploading

Clear errors

Invalid JSON shows the message with its line and column.

Four formats

2 spaces, 4 spaces, tabs or one compact line.

Safe for secrets

API keys and personal data in the JSON are not sent to any server.

Good to know

Online formatters often send what you paste to their server. API responses and configuration files tend to contain tokens, e-mail addresses and internal URLs, so formatting them locally is the safer habit.

Validation follows the JSON standard strictly: trailing commas, comments and single quotes are errors, exactly as they would be for a JSON parser in your code. The error position points to where the parser stopped, which is usually right after the real mistake.

Minify removes all spaces and line breaks for the smallest payload; pretty-printing keeps the order of keys as in the input.

Questions and answers

Does it accept comments or trailing commas?

No. Those are not valid JSON and are reported as errors.

Is the key order changed?

No, keys stay in their original order.

Is my JSON sent anywhere?

No. It is formatted in your browser.