Well-formed rules
- Keys and string values must use double quotes, not single quotes.
- Arrays and objects cannot contain trailing commas.
- Numbers should be base-10; NaN and Infinity are not allowed.
- Comments are not part of the JSON specification.
Enter JSON, then select Validate, Format or Minify. Copy and Download use only the current valid output. Open Compare JSON for a separate structural comparison.
Try it: Format {"answer":42}, then Minify to return to {"answer":42}. Invalid JSON produces a field error and no downloadable output.
Limit: Validation checks JSON syntax, not an application schema. JavaScript number precision applies; keep large identifiers as strings.
JSON is a subset of JavaScript literals, but it enforces strict quoting and structure. The formatter highlights syntax issues before payloads reach APIs or configuration files.
Consistent formatting keeps diffs readable and ensures automation tools parse data predictably. Adopt these conventions for cleaner payloads.
Sort keys alphabetically when generating JSON for configuration or caching to reduce merge conflicts and simplify diff reviews.
Validate structure with JSON Schema to catch missing fields or incorrect types before data reaches production.
Compact JSON before sending it over the wire to reduce latency, but keep formatted versions in version control for readability.
Paste {"enabled":true,"retries":3} and choose Format. The result has one property per line; Minify returns the compact form.
{"enabled":true,"retries":3}Try adding a comma after 3: validation must fail. JSON requires double-quoted property names and does not allow comments or trailing commas. Formatting validates syntax, not an API schema. Parsing and reserializing can lose precision for integers larger than JavaScript can represent exactly; keep identifiers as strings.
Well-formed JSON uses double-quoted keys, comma-separated elements, and forbids trailing commas or comments. The validator pinpoints syntax mistakes instantly.
Once your JSON parses without errors, use JSON Schema libraries like ajv (Node.js) or jsonschema (Python) to enforce field requirements and data types.
No. Formatting, validation, and comparison all happen locally so sensitive payloads remain on your machine.
For multi-megabyte payloads, stream or chunk data and rely on command-line tools like jq to avoid browser
slowdowns.
Formatting adds indentation and line breaks for readability. Minifying removes whitespace to create compact payloads suited for network transmission.
Protect text with AES-GCM and PBKDF2 tokens that stay on-device.
Generate MD5, SHA-1, and SHA-256 digests locally with Web Workers.
Convert any text to or from Base64 without leaving your browser.
Decode claims and verify HMAC signatures without network calls.
Format, minify and convert XML to JSON locally.
Experiment with regular expressions and capture groups locally.
Encode components and inspect query parameters locally.
Create collision-resistant UUID v4 identifiers using Web Crypto.
Build strong passwords with custom length, charset, and entropy.
Convert Unix timestamps into local, UTC and ISO dates.
Convert case, slugify, and clean strings on-device.
Switch between HEX, RGB, HSL, and Tailwind palettes instantly.
Design QR codes for text, Wi-Fi, contacts, email, or SMS locally.
Generate EAN and Code 128 barcodes and download crisp PNG output.
Look up your public IP using disclosed external services.
Produce paragraphs, lists, and markdown filler text fast.
Compress JPG, PNG, WebP and AVIF images to a target size in your browser. Preview results, process batches and download images individually or as a ZIP.
Convert WebP and AVIF images to JPG or PNG locally. Batch convert supported images, control quality and transparency, preview results and download a ZIP.
Convert JSON and NDJSON to CSV for Excel, or CSV to JSON, locally. Flatten nested objects, choose columns and delimiters, and download UTF-8 results.
Decode Base64 or data URIs to an image preview and download, or encode an image file to Base64. Inspect dimensions and size without uploading your image.
Convert HEIC and HEIF photos to JPG or PNG in your browser. Choose quality, preview converted images and download individual photos or a batch ZIP.
Decode Base64 to PDF locally, preview pages with zoom and navigation, and download the decoded PDF. Supports raw Base64 and application/pdf data URIs.
Run the AES interoperability guide or read how these tools are checked.