Back

JSON minifier

Formatters

Loading

Loading tool

Preparing the tool. The remaining time is not yet known.

All processing for this tool happens in your browser. Your input is not sent to a server.

About this tool

Compress valid JSON to a single line by removing formatting whitespace.

Common uses

  • Compress valid JSON to a single line by removing formatting whitespace.
  • Paste strict JSON into the input.

How to use it

  1. 1.Paste strict JSON into the input.
  2. 2.Run compact and copy the one-line result.

Limits and notes

  • Comments and trailing commas are invalid; parsing and serialization replace the original formatting.

Frequently asked questions

What does this tool do?

Compress valid JSON to a single line by removing formatting whitespace.

What should I check before using the result?

Comments and trailing commas are invalid; parsing and serialization replace the original formatting.

Related tools