JSON Minifier

Make valid JSON compact for a text payload.

Text inputPreview and copyRuns in your browser

Enter your text

Result

How to use JSON Minifier

  1. Paste your source text in the input box.
  2. Select Convert to generate the output.
  3. Review the output before copying it.

How it works

Make valid JSON compact for a text payload. Parse the input as JSON and serialize it without indentation.

Formula or processing rules

Parse the input as JSON and serialize it without indentation.

Worked example

A two-property object with spaces between tokens becomes a compact single-line object.

Example text lengths in UTF-16 code units
Input · 30
Output · 25
Worked example
MeasureValue
Source text{ "active": true, "count": 2 }
Result{"active":true,"count":2}

Pros and cons

Pros

Make valid JSON compact for a text payload. The sample provides an immediate check of the expected output.

Cons

JSON parsing can change duplicate keys and number representation. Review large numeric identifiers before re-encoding.

Troubleshooting

Check the input format and compare your case with the built-in sample. JSON parsing can change duplicate keys and number representation. Review large numeric identifiers before re-encoding.

Frequently asked questions

How do I use the text I get back?

Copy the output into the document, list, or compatible tool where you need it.

How does the transformation work?

Parse the input as JSON and serialize it without indentation.

Can I try a sample first?

A two-property object with spaces between tokens becomes a compact single-line object.

What should I check before using the result?

JSON parsing can change duplicate keys and number representation. Review large numeric identifiers before re-encoding.

Is my input stored by the tool?

The transformation is computed in the open page. The tool does not save the submitted text.