BTC $64,505.00 −1.17% ETH $1,815.96 −0.77% USDT $0.9994 −0.02% BNB $590.51 −1.08% USDC $0.9997 −0.01% XRP $0.9557 −1.37% SOL $71.75 −0.99% TRX $0.3050 +0.39% FIGR_HELOC $1.04 — STETH $1,796.44 −1.86% HYPE $68.70 +2.84% ZEC $906.37 +0.33% XMR $493.53 −1.00% DOGE $0.0588 −1.13% BTC $64,505.00 −1.17% ETH $1,815.96 −0.77% USDT $0.9994 −0.02% BNB $590.51 −1.08% USDC $0.9997 −0.01% XRP $0.9557 −1.37% SOL $71.75 −0.99% TRX $0.3050 +0.39% FIGR_HELOC $1.04 — STETH $1,796.44 −1.86% HYPE $68.70 +2.84% ZEC $906.37 +0.33% XMR $493.53 −1.00% DOGE $0.0588 −1.13%

JSON Formatter

Paste JSON to check it is valid and get it nicely indented, with keys sorted if you like.

  • 100% Free
  • No sign-up
  • Runs in your browser

What is the JSON Formatter?

API responses and config files often arrive as one long line of JSON. The formatter lays it out with indentation so you can read it, and checks it is valid at the same time.

Sort keys alphabetically to compare two objects more easily. If the JSON is broken, you get a clear message and the position of the problem.

Features

Pretty print

2 spaces, 4 spaces or tabs.

Sort keys

Alphabetical order for easy comparison.

Error position

Find the exact place a comma or quote is wrong.

Private

Tokens and data stay in your browser.

How to use the JSON Formatter

  1. 1

    Paste your JSON.

  2. 2

    Pick the indent.

  3. 3

    Copy the formatted JSON.

Who it is for

API work

Read responses from REST APIs.

Config files

Tidy package.json and settings files.

Tips for better results

  • JSON needs double quotes and no trailing commas. Those are the most common errors.

Questions people ask

Is my JSON uploaded?

No. It is formatted in your browser, so API keys inside it stay private.

Where is my error?

The message shows the line and column where reading stopped.

Trustpilot

What our customers say

4.8 / 5Trustpilot rating
FREE BITCOIN TOOLS

Stuck Bitcoin transaction?

Paste your TXID, see where it stands, and give it a free push. No signup, no wallet access.

Try the free accelerator
  • Free
  • No signup
  • Live status