How to tell if an online JSON formatter uploads your data (and what I built instead)
How to tell if an online JSON formatter uploads your data (and what I built instead) “Free online JSON formatter” is one of those searches where the result looks harmless until the payload is not harmless: an internal
How to tell if an online JSON formatter uploads your data (and what I built instead)
“Free online JSON formatter” is one of those searches where the result looks harmless until the payload is not harmless: an internal API response, a customer record, a config file with a token still in it.
I got tired of pasting first and checking later. So I built a small set of JSON tools at shoulin.shop that do the work in the browser tab. This post is not a pitch. It is the check I now run before I trust any online formatter, plus the edge cases that made the browser-only version harder than it sounds.
The 10-second check
Open the site you are about to use, then:
- Open DevTools → Network.
- Clear the request log.
- Paste a small JSON document and press the format button.
- Watch what appears.
If a request appears when you press Format, the document may be leaving your browser. The request might be an API call, a logging endpoint, an analytics event with the input attached, or a series of third-party browser SDK pings. The label does not matter. The timing does: a request that only appears after you click is the one to worry about.
A browser-only tool still makes normal requests to load its HTML, CSS and JavaScript. That is expected. The question is whether the content you pasted becomes part of a request.
What “browser-only” actually means
For the formatter, the flow is deliberately boring:
- the text is read from the textarea;
-
JSON.parseparses it; -
JSON.stringifywrites it back with the chosen indentation; - the result goes into the output textarea.
No fetch, no server action, no localStorage copy. The same rule applies to the validator, minifier, diff and converters on the site.
That is not a privacy claim you have to take on faith. It is a testable property of the network panel.
Precision: the trap that looks like a formatting bug
Here is the part that surprised me most. A formatter that parses through JSON.parse and writes back with JSON.stringify will change integers above 2^53.
Try this:
{"id":9007199254740993}
Format it and the value comes back as 9007199254740992. Nothing was corrupted in transit. JavaScript has one numeric type, an IEEE-754 double, and that particular integer is not representable exactly.
This matters for payment IDs, snowflake IDs, timestamps stored as numbers, and signatures. The correct advice is not “use a different formatter”; it is “send big IDs as strings”. The precision guide explains the boundary and shows the exact round trip.
My formatter does not pretend to solve this by silently keeping numbers as text. It uses the native parser, so it has the native parser’s rules. The useful thing is that those rules are documented instead of being discovered in production.
Validation is not just yes/no
Most validators say “invalid” and stop. The useful question is why.
The same broken document produces different sentences in different engines:
| Input | V8 | Python |
|---|---|---|
{a: 1} |
Unexpected token a ... is not valid JSON |
Expecting property name enclosed in double quotes |
{"a": 1,} |
Unexpected non-whitespace character after JSON |
Illegal trailing comma before end of object |
"" |
Unexpected end of JSON input |
Expecting value: line 1 column 1 (char 0) |
The validator collects real messages from V8, CPython and MySQL, then explains what each one usually means. The guides go further: this one pairs each message with the input that triggered it.
This is the part I wish existed when I was debugging “unexpected token” errors: not generic advice, but the exact sentence and the exact input.
Minifying is not the big win people think it is
Another assumption that did not survive measurement: minifying JSON saves a lot on the wire.
On one 216 KB document, minification removed 43.7% of the raw bytes. After gzip, the same minification saved only about 10.8%; after brotli, 4.9%. Indentation compresses extremely well because it is a repeating pattern. Unique keys and IDs do not.
So if your API responses are slow, enabling compression beats minifying. The minifier still has a place: storage with quotas, message queues, URLs, and deterministic signing. But it is not the first lever to pull.
Conversion is where the silent bugs live
The converter pages exist because JSON ↔ CSV and JSON ↔ YAML look simpler than they are.
- CSV has no types. A 19-digit ID can become a rounded number in Excel. Leading zeroes can disappear.
- YAML 1.1 reads
yesandonas booleans; YAML 1.2 treats them as strings. - Generated models have to distinguish missing keys from keys that are present with
null.
The JSON to CSV converter flattens nested objects into dotted columns and escapes values per RFC 4180. The code generators sample every array element, so a key that appears in only some records becomes optional instead of required.
That last rule is the difference between a generated model that compiles and a generated model that tells the truth.
Try it and tell me what breaks
Everything is at shoulin.shop. Open the Network panel, paste a document, and watch the request list stay quiet while you format it.
If you find a document that converts incorrectly, that is the bug report I want most. The edge cases are the product.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.