Toffeekit
  • Home
  • All tools513
  • Recent
  • Favorites
Categories
  • Images51
  • Video21
  • PDF33
  • AI24
  • Data21
  • SEO12
  • Developer32
  • Text27
  • Design18
  • Files13
  • Utilities5
  • Productivity17
  • Finance26
  • Math39
  • Education19
  • Date & Time29
  • Converters43
  • Fun & Random24
  • SaaS13
  • Business17
  • Social11
  • Media5
  • Security13
Buy me a coffee
ToffeekitDeveloperJSON Repair

JSON Repair

Fix broken JSON: trailing commas, comments, single quotes, missing brackets and more. Runs entirely in your browser, so nothing is uploaded.

Help
Runs locally Instant, no sign-up Works offline
Use cases

One click to the right settings

Fix and format

Repair the JSON and indent it so it's easy to read.

Fix and minify

Repair, then strip all spaces for a compact payload.

Keep my layout

Fix only what's broken and leave your line breaks alone.

How it works

How to use JSON Repair

  1. 01Paste broken JSON into the left panel, or click Open to load a file.
  2. 02Choose Output: Formatted, Minified, or Keep layout to change only what's broken.
  3. 03Pick an Indent of 2 spaces, 4 spaces or Tab for formatted output.
  4. 04Check the status line, then Copy or Save the repaired JSON.
Questions

JSON Repair FAQ

6 answers to what people ask most about the JSON Repair.

What kinds of errors can it fix?

Trailing commas, // and /* */ comments, single quotes, unquoted keys, missing commas, missing closing brackets, Python True, False and None, MongoDB wrappers like ObjectId("…") and ISODate("…"), concatenated strings, and JSONP callbacks.

Can it fix JSON from ChatGPT or another LLM?

Yes. Model output often has code fences, comments, trailing commas or a cut-off ending. The repair closes open strings, arrays and objects so the result parses.

Will repairing change my data?

It only changes syntax. Keys and values are kept, but a cut-off value is closed where it ends, so check the end of truncated input.

What does Keep layout do?

It returns the repaired text with your original line breaks and spacing, changing only the broken parts. Formatted and Minified re-indent the whole document.

Why does it say it couldn't repair my input?

Some text is too ambiguous to fix safely, such as random characters between values. The message shows the line and column where repair stopped.

Is JSON Repair free and private?

Yes. It's free with no sign-up or limits, and it runs entirely in your browser, so what you type or paste never leaves your device. It works on phones and computers alike.

Something not working? Tell us and we'll fix it.

Report an issue
More tools
JSON Formatter

Format, minify and validate JSON with clear errors.

Developer
Base64 Encode / Decode

Encode text to Base64 or decode it back, UTF-8 safe.

Developer
URL Encode / Decode

Percent-encode query values or whole URLs.

Developer
HTML Entities

Escape < > & and quotes, or decode entities.

Developer
Something off with JSON Repair? Report an issue or ask for a feature.Send feedback
© 2026 Toffeekit/Runs locally · No uploads · Free
AboutContactFeedbackPrivacyTermsCookiesSettingsllms.txt