JSON Minifier

Smaller JSON loads faster and fits in environment variables, query strings and config fields. The minifier validates the input first, so you never ship broken JSON.

Runs entirely in your browser. Your input and files are not uploaded to any server.

How to use

  1. Paste formatted JSON.
  2. Press Minify.
  3. Copy the single-line result. The size before and after is shown.

Examples

Config file

A 2 KB indented config usually shrinks by 20–40% when whitespace is removed.

Privacy

Runs entirely in your browser. Your input and files are not uploaded to any server. See the privacy policy for what is stored in your browser (favorites and history only). Privacy policy

Check it yourself: open your browser’s developer tools, select the Network tab and use the tool. Your file never appears in an upload request. Once this page is saved for offline use, you can also disconnect from the internet and keep working. Ads and anonymous visit statistics, when enabled, make their own requests, but they never receive your files or text.

Frequently asked questions

Does minifying change the data?

No. Only insignificant whitespace is removed. Keys, values and order stay exactly the same.

Should I minify for gzip?

Servers usually compress JSON with gzip or Brotli anyway, so the gain on the network is smaller than the raw byte saving. Minifying still helps for storage and embedding.

URL Encoder / DecoderPercent-encode text for URLs and query strings, decode encoded URLs, and break a full URL into its parts and query parameters.
SVG Preview & OptimizerPreview SVG files safely and shrink them by removing comments, editor metadata and whitespace, with optional number rounding.
Color Picker & ConverterPick a colour, convert between HEX, RGB and HSL, sample colours from an image or your screen, and check contrast against white and black text.

Search tools