Menu
PDF Tools
Image Tools
Converters & Utilities
Seller & Print Tools
Accounting & Business
Calculators
Text & Writing Tools
Developer & Web Tools
Creator & Social Tools
Browser Utilities & Games
Document & Design Makers
Text & Developer Tools
Exam & Form Tools

JSON Repair Tool

This tool reads JSON that is almost right, such as text from a chat assistant, and writes valid JSON. It lists every fix, so you can check that nothing was guessed wrongly.

How to use JSON Repair Tool online

  1. Paste the broken text. Or open a file.
  2. Choose indent and sorting. As you like.
  3. Read the change list. Check each fix.
  4. Copy the JSON. Or save it.

Why use this free JSON Repair Tool

  • Code fences and chat text removed
  • Quotes, keys and commas fixed
  • Open brackets closed
  • Table of every change
  • Sorted keys
  • Works in your browser

What it repairs

Text that came from a chat assistant, a log or a hand edit is often close to JSON but not valid. The tool removes the code fence and the chat around it, turns single quotes and curly quotes into double quotes, puts unquoted keys in quotes, and removes comments and trailing commas. It adds missing commas and colons, closes brackets and strings that were never closed, and changes Python words such as True and None into true and null.

The change list

Fixing without telling you what was fixed is risky, because a repair is a guess. Every fix is written in a table under the result. If the list says that a bracket was closed at the end, you know the text was cut short and that data may be missing. If the list is empty, the text was already valid JSON, and the result is only reformatted.

Indent and sorting

Choose two spaces, four spaces or one line with no spaces. You can also sort the keys alphabetically in every object, which helps when you compare two files. The result is checked by the browser parser before the page says it is valid, so a result marked valid will load in code.

Where it stops

The reader follows the shape of the text. When whole parts are missing, or when two objects are glued together with no separator, it picks the reading that needs the fewest changes, and that can be wrong. Text with no braces or brackets at all is refused. Always read the result before you use it in a program or send it on.

Privacy

The text is read and written in your browser. Nothing is sent to a server, which matters when the JSON holds keys, names or customer data. You can open a file into the box, copy the result or save it as a file.

Using the tool

There is no button to wait for: the JSON Repair Tool result follows every change. Undo and redo step back through your earlier text.

JSON Repair Tool: frequently asked questions

Does it use AI?
No. It is a hand-written reader with fixed rules, so the same input always gives the same output.
Can it recover data that is missing?
No. It can close a bracket, but it cannot know what was cut off.
Why did a number become a string?
A word that is not a number, true, false or null is put in quotes and kept as text.
What if a key appears twice?
The later value is kept and the change list says so.
Does the JSON Repair Tool keep a copy of my text?
The JSON Repair Tool works locally, and clearing the site data removes anything the editor saved.
Can I copy the JSON Repair Tool result?
Copy the JSON Repair Tool result, or save it as a text file from the result box.

Related searches for JSON Repair Tool

  • JSON Repair Tool online
  • free JSON Repair Tool
  • JSON Repair Tool online free
  • JSON Repair Tool for mobile
  • JSON Repair Tool without sign up
  • JSON Repair Tool – Developer & Web Tools

JSON Repair Tool is a free online tool on MAITBOX, in the Developer & Web Tools group. It runs in your browser, so what you type is not sent to a server. It works on Android and iPhone, and on Windows, Mac and Linux, with no download and no account.

More tools in Developer & Web Tools →

Search tools