Minify an indented config
Input
{
"message": "hello world",
"count": 2
}Example output
{"message":"hello world","count":2}Parse valid JSON and re-serialize it without structural whitespace, entirely in your browser. Spaces inside string values are preserved, and invalid input produces an actionable syntax error with line and column.
| Accepted input | JSON text: objects, arrays, strings, numbers, booleans, or null |
|---|---|
| Operation | Single fixed operation with no options: parse, then serialize without extra whitespace |
| Max input size | 5 MB |
| Execution deadline | 2 s |
| Processing location | Browser-only: pasted input is not uploaded |
Input
{
"message": "hello world",
"count": 2
}Example output
{"message":"hello world","count":2}Whitespace characters inside string values are preserved; only whitespace between structural tokens is removed. Escape spellings inside strings may still be rewritten (see below).
Escape sequences inside strings may be rewritten even though the parsed character is unchanged: for example, "\u0041" becomes "A".
Duplicate object keys are not reported: the last value wins during parsing, matching JSON.parse behavior.
Values follow standard JavaScript JSON precision: integers beyond 2^53 - 1 may lose least-significant digits, and out-of-range literals such as 1e999 do not survive the round trip.
JSON Formatter
Prettify, indent, and format JSON strings with customizable indentation and key sorting.
JSON Validator
Validate JSON syntax, inspect structure, and diagnose syntax errors with line and column diagnostics.
Base64 Encoder / Decoder
Encode UTF-8 text to standard or URL-safe Base64 and decode Base64 back to text.
Hash Generator
Generate cryptographic hashes and message digests including SHA-256, SHA-512, SHA-384, SHA-1, and MD5 for text payloads.
No. Minification removes unnecessary whitespace from the JSON text. It does not apply gzip or Brotli compression, and it does not change HTTP headers.
The parsed data is preserved, with three caveats: whitespace inside strings is kept but escape sequences may be rewritten, duplicate keys collapse to the last value, and numbers follow standard JavaScript JSON precision.
Minification fails with an actionable syntax error reporting line and column. Fix trailing commas, single quotes, comments, or unclosed braces and run again.
Yes. Minifying shrinks the payload text, and transport compression such as gzip or Brotli shrinks it further on the wire. They complement each other.
Paste the compact output into the JSON Formatter and choose 2-space, 4-space, or tab indentation to pretty-print it.
No. Minification runs inside an isolated Web Worker in your browser, and pasted input is not uploaded for processing. The browser still requests site assets from the host; clipboard, downloads, and analytics are separate boundaries.