Skip to content

JSON minifier

Shrink a JSON file or API payload down to the smallest byte count that still parses to the exact same data, by removing every space, tab and line break that JSON itself ignores. Useful before pasting a payload into a request body with a size limit, or committing a config file where every byte of a diff matters.

  • Nothing you type leaves this page
  • Works offline once loaded
  • Free forever, no signup
Formatted

Valid JSON.

  • Keys {{ stats.keys }}
  • Depth {{ stats.depth }}
  • Minified {{ stats.minified }} chars
  • Saved {{ stats.saved }}%

From a free tool to your own software

API integration and data exchange software for businesses

Payment gateways, courier partners, marketplaces and the GST e-invoice system all exchange data as JSON, and one missing bracket or wrong field type can stop orders syncing without anyone noticing. Developers pasting payloads into a formatter to find the fault is a sign the integration has no checks of its own. Well-built integration software validates every message, logs failures clearly and retries before a customer is affected.

  • ERP and marketplace integrations

    Orders, stock and prices synced between your ERP and the marketplaces, payment gateways and courier services you use, with every payload checked against its expected structure.

  • Webhook monitoring dashboard

    Every incoming and outgoing API call is recorded with its payload, response and error, so your team can see which partner sent bad data and replay the messages that failed.

  • GST e-invoice and e-way bill generation

    Invoice data from your billing or accounting system is turned into the JSON the government portals expect, validated before submission and matched to the IRN or e-way bill number returned.

  • Public API for your product

    A documented, versioned API your customers and partners can build on, with sample requests, sandbox keys and error messages that point to the exact field at fault.

Who we build this for: Manufacturers, distributors, e-commerce sellers, logistics firms and software companies integrating partner systems.

This tool runs entirely in your browser. The team that built it designs custom software for businesses and runs DigiSign, our own signage platform, in production.

How to use this tool

  1. Paste your formatted JSON

    Indented, pretty-printed, however you have it.

  2. Click Minify

    Every space outside of string values disappears in one pass.

  3. Check the size saved

    The stats row below shows the exact byte count before and after, and the percentage saved.

Questions people ask

Does minifying change the actual data?

No. JSON treats whitespace between tokens as insignificant, so removing it cannot change a single value, key or the structure of the document — JSON.parse() on the minified output returns an object that is deeply identical to the original.

How much smaller does minifying actually make a file?

It depends entirely on how heavily the original was indented — a deeply nested config file with 4-space indentation can shrink 20-30%, while an already-compact API response barely changes. The saved-percentage stat below the output shows the real number for your file.

Should I minify JSON before sending it to an API?

Most APIs accept either form and parse them identically, so it rarely matters for correctness — it mainly helps when you are pasting into a field with a character limit, or want a smaller diff in version control for machine-generated config.

Can I undo minifying and get the indentation back?

Yes — paste the minified output into our JSON formatter and pick an indent width; minifying only removes whitespace, so nothing about the original structure is lost.

Is anything I paste here sent to a server?

No. The whole tool is JavaScript running in your browser, and this site has no endpoint that accepts text. That matters when what you are pasting is a real API payload, a customer record, or a password.

Who makes these tools

Bookmark this page — the tool keeps working offline, and your settings stay in this browser. Built by Dynamb Technologies, who build software for businesses.