Unformat.online
More tools
Clean Text
Strip smart quotes, zero-width characters, non-breaking spaces, and invisible Unicode from any pasted text.
Markdown Viewer
Live split-view editor and renderer — edit on the left, preview on the right.
Text Diff Checker
Compare two texts, JSON payloads, or config files and see exactly what changed, line by line.
Log File Viewer
Open multi-gigabyte log files instantly — chunked indexing and virtual scrolling handle 10GB+ files without freezing your tab.
FileSQL
Drop a CSV or JSON file and query it with SQL instantly — no upload, no server.
Format SQL
Format SQL for MySQL, PostgreSQL, BigQuery, T-SQL, and more — uppercase keywords, proper indentation.
Schema Visualizer
Paste CREATE TABLE statements and get an ER diagram instantly — tables, columns, keys, and foreign-key relationships.
Format JSON
Prettify or minify JSON. Auto-fixes single quotes, trailing commas, and unquoted keys.
Format YAML
Format and validate YAML. Catches indentation errors in Kubernetes, Docker Compose, and GitHub Actions files.
Format XML
Indent and pretty-print XML. Works with SOAP, RSS, Maven POM, Android manifests, and SVG.
JWT Debugger
Decode JWTs instantly — view all claims, check expiry, and see the algorithm. Token never leaves your browser.
Shredder
Remove EXIF, GPS, and author metadata from images and PDFs. Redact secrets from text and log files.
SSL Certificate Checker
Check any domain's SSL/TLS certificate — expiry, issuer, and Subject Alternative Names.
PDF Tools
Merge, split, rotate, or sign PDFs, fill in forms, and add text — entirely in your browser, nothing uploaded.
CronScope
Paste a cron schedule and see every run on a 12-month calendar. Never misread a cron expression again.
Regex Tester
Test regex patterns against sample text with live-highlighted matches, or pick from a library of ready-made patterns — no regex knowledge required.
Base64
Encode text or files to Base64, or decode Base64 strings and preview images inline.
URL Encode / Decode
Encode URLs or decode percent-encoded strings like %20, %3D, %26 — instantly.
UUID Generator
Bulk-generate cryptographically random v4 UUIDs using crypto.randomUUID(). Copy one or all at once.

Minify JSON Online

Compress JSON by stripping all whitespace. Paste your formatted JSON and get the smallest valid output instantly — 100% client-side.

Rules:Smart QuotesConverts curly quotes (“” ‘’) to straight quotes. Always active.Non-Breaking SpacesReplaces non-breaking spaces (U+00A0) with regular spaces. Always active.Line EndingsNormalizes CRLF → LF and trims trailing whitespace per line. Always active.Removes invisible zero-width characters (U+200B, U+200C, U+200D) that silently break string comparisons.Strips the Byte Order Mark (U+FEFF) that causes “invalid character” errors in parsers and editors.Removes soft hyphens (U+00AD) from PDFs that show as garbled characters in code editors.Converts mixed tabs/spaces to a consistent indent width. Click to pick a size.Collapses all line breaks into one continuous paragraph. Great for reflowing PDF or email text.Control blank line density. Click to pick Keep 1 or Remove all.Text never leaves your browser
0 characters

What is JSON minification?

JSON minification removes all optional whitespace — spaces, tabs, and line breaks — from a JSON document. The result is functionally identical to the original: every parser produces the same data structure. The only difference is size and readability.

A prettified JSON object like:

{
  "user": {
    "id": 1,
    "name": "Alice"
  }
}

becomes:

{"user":{"id":1,"name":"Alice"}}

When to use minified JSON

Use minified JSON for production environments — API payloads, HTTP responses, CDN-served config files, and environment variable values. Every byte saved reduces transfer time and memory usage at scale.

Common use cases: embedding JSON in shell scripts or CI pipelines where newlines would break the command, storing JSON in databases or key-value stores with size limits, compressing request bodies before sending to external APIs.

Frequently Asked Questions

What does minifying JSON do?

It removes all whitespace outside of string values. The JSON is still valid and parses identically — it is just smaller. Typical compression is 30–60% depending on how deeply nested the original structure is.

Can I minify JSON that has errors?

Yes — the Auto-fix option (enabled by default) repairs common errors like single quotes, trailing commas, and unquoted keys before minifying. If your JSON has errors that cannot be auto-fixed, you will see an error message with the problematic location.

Is my JSON sent to a server?

No. All processing uses native browser JavaScript. Your data never leaves your device. Check the Network tab in DevTools to confirm — zero requests are made.