Is it safe to paste JSON into an online formatter? What the 2025 exposure showed
Researchers downloaded more than 80,000 saved items from two formatter sites. What that means for your API responses, and ways to format JSON without a website.
We make JSON Toolkit, the app this guide uses. The free methods come first; every step shown in JSON Toolkit was checked in the app itself, and the screenshots come from the real app with invented sample data.
Short answer
Not for anything you would not publish. In November 2025, researchers at watchTowr Labs showed that items saved on two formatter sites, JSONFormatter and CodeBeautify, could be listed and downloaded by anyone, passwords and keys included. For API responses, tokens and customer data, format and check JSON on your PC: Python's json.tool and Windows PowerShell do it for free, as run below. JSON Toolkit adds a problem list with the line and column of each problem, a warning for numbers JavaScript would change, and copies saved as new files.
What the researchers found, and what it does not show
At the time of the research, both sites had a Save button that turned what you pasted into a shareable link. In their report of 25 November 2025, watchTowr Labs describe a Recent Links page on both sites that listed the saved items to any visitor. Following those links, they downloaded more than 80,000 saved submissions, covering five years of JSONFormatter and one year of CodeBeautify, and found credentials and keys among them. To see whether anyone else was reading the list, they saved fake cloud credentials set to expire after 24 hours: someone tried them 48 hours after the upload, a day after the link had expired.
BleepingComputer reported the research the same day, with exposed data from banks, government bodies and technology companies. We have not checked how either site works today. What the research shows is about saved items: it does not show that text pasted and never saved was exposed. Still, from the page alone you cannot tell whether a formatter works in your browser or sends your text to its server, and a site can change how it works at any time.
What to keep out of any website formatter
- Tokens, passwords, API keys, cookies and connection strings, in any form.
- Customer and staff data: names, email and postal addresses, order and account numbers.
- Internal host names, URLs and configuration you would not post publicly.
If a secret was ever pasted and saved on such a site, treat it as exposed: revoke it, issue a new one, and check its access logs for use you do not recognise.
Method 1 (free): Python's json.tool
Python includes a JSON formatter, json.tool: python -m json.tool, or py -3 -m json.tool on Windows, prints a file formatted, or stops at the first error with its line and column. We ran it on 30 November 2026 (Python 3.11.9, Windows 11) on two invented files. The first, broken.json, misses a comma between two items:
{
"order": 10482,
"customer": "ada@example.com",
"items": [
{"sku": "TM-TENT-2P", "qty": 1}
{"sku": "TM-STOVE", "qty": 2}
]
}
py -3 -m json.tool broken.json
Expecting ',' delimiter: line 6 column 5 (char 106)
The second, response.json, is a one-line API response from an invented shop, with an invented token and a long order number:
{"status":"ok","access_token":"example-not-a-real-token","expires_in":3600,"order":{"id":9007199254740993,"shop":"Trailmoss Outdoor (example)","total":"184.90","currency":"EUR"}}
py -3 -m json.tool response.json
{
"status": "ok",
"access_token": "example-not-a-real-token",
"expires_in": 3600,
"order": {
"id": 9007199254740993,
"shop": "Trailmoss Outdoor (example)",
"total": "184.90",
"currency": "EUR"
}
}
Method 2 (free): Windows PowerShell
Windows PowerShell 5.1, built into Windows 10 and 11, reads JSON with ConvertFrom-Json and writes it with ConvertTo-Json, whose -Depth is 2 unless you set it; deeper objects are then written as text such as "@{d=1}", without a warning in our run, so keep -Depth 100. We ran it on the same files, from their folder:
Get-Content -Raw response.json | ConvertFrom-Json | ConvertTo-Json -Depth 100
{
"status": "ok",
"access_token": "example-not-a-real-token",
"expires_in": 3600,
"order": {
"id": 9007199254740993,
"shop": "Trailmoss Outdoor (example)",
"total": "184.90",
"currency": "EUR"
}
}
The values come through, the long number included, in an uneven layout. On broken.json, Get-Content -Raw broken.json | ConvertFrom-Json stopped with an error in the system's language (French on our test PC) that names character 107, not a line and column.
A trap: long numbers and JavaScript
JSON allows numbers of any length, but JSON.parse in JavaScript reads every number as a 64-bit floating point value, which holds every whole number exactly only up to 9007199254740991. We read the same response with JSON.parse in Node.js v24.15.0:
node -e "const o = JSON.parse(require('fs').readFileSync('response.json', 'utf8')); console.log(o.order.id)"
9007199254740992
The order number's last digit changed from 3 to 2, without any warning. Any tool that reads JSON this way, in a browser or not, can change an order or account number in the copy it gives back; json.tool and PowerShell kept 9007199254740993 in our runs.
Method 3: paste and check JSON on your PC with JSON Toolkit
JSON Toolkit is our Windows app for structured data: it formats, minifies and validates JSON, checks files against a JSON Schema with clear error locations, compares two files by meaning and converts between JSON, YAML and CSV. It works offline, so API responses and customer exports never have to be pasted into a website. The screenshots below come from version 1.0.0 (evaluation build) with an invented order and API response pasted as text.
- Paste the text. Paste text adds what you copied as an entry, Pasted 1, and checks it at once. The order with the missing comma got 1 error: "Line 6, column 5: a comma is missing between two values ...".
- Read the warnings. A longer version of the API response, with order lines and a delivery address, pasted as Pasted 2, got 1 warning at order.id: "the number 9007199254740993: JavaScript reads it as 9007199254740992". The number itself is kept as written.
- Save a formatted copy. Choose JSON formatted and the indent, then a folder, and save: copies are new files, never written over a file. In our test the copy of the response was written, and the text with the error was not saved: "1 copy written ... 1 file not saved". Reading the copy back, its order number was still 9007199254740993.



To compare two JSON files on your PC, such as two API responses, see our guide to comparing two JSON files by meaning.
Limitations
- json.tool and ConvertFrom-Json stop at the first error; PowerShell 5.1 gives only a character position, in the system's language.
- No formatter, on a website or on your PC, makes a leaked secret safe again: revoke it and issue a new one.
- JSON Toolkit checks and formats files on your PC; it does not send them anywhere. Files up to 100 MB each. Its planned requirements: Windows 10 (22H2) or 11, 64-bit.
References
- watchTowr Labs: Stop putting your passwords into random websites
- BleepingComputer: Code formatters expose thousands of secrets from banks, govt, tech orgs
- Python documentation: json
- Microsoft Learn: ConvertFrom-Json
- Microsoft Learn: ConvertTo-Json