JSON Formatter
Formats, indents and validates JSON with precise error positions, key sorting and a…
Compresses text to gzip, zlib or raw deflate and returns base64, or expands a pasted base64 stream back to text, entirely in the browser.
The Deflate and Base64 Tool compresses text to gzip, zlib or raw deflate and returns base64, or expands a pasted base64 stream back to text, entirely in the browser. It runs as plain JavaScript inside the page, which means there is no upload step, no queue and no size limit imposed by a server — the only limit is your own device.
| Engine | CompressionStream and DecompressionStream — no library |
|---|---|
| gzip header | 1f 8b |
| zlib header | 78 followed by a flag byte |
| raw deflate | No header at all — undetectable by inspection |
| Base64 overhead | About 33% on top of the compressed bytes |
Text in, text out. Binary payloads can be compressed but the expanded result is shown as text, which will look wrong for anything that is not.
Formats, indents and validates JSON with precise error positions, key sorting and a…
Checks whether JSON is valid and reports the exact line, column and reason for the first error…
Strips all whitespace from JSON to produce the smallest valid output, showing the bytes saved.
Converts a JSON array of objects into CSV, flattening nested keys and handling missing fields…
Turns CSV or TSV into a JSON array of objects, with type detection for numbers and booleans.
Converts JSON into well-formed XML with a configurable root element and array item naming.
Parses XML and converts it to JSON, preserving attributes and handling repeated elements as…
Converts JSON to clean YAML with correct indentation, quoting and multi-line string handling.
Parses YAML and outputs equivalent JSON, with support for anchors, lists and nested maps.
Escapes a string for safe embedding inside JSON, and unescapes a JSON string back to plain text.