Fix Quotes in JSON
Fix incorrectly quoted keys and values, such as single quotes. Runs entirely in your browser, so your data never leaves your device.
0 chars · 0 lines
Output
The result appears here as you type.
How to use Fix Quotes in JSON
- 1. Paste your broken JSON. Put JSON that uses single quotes, curly smart quotes, or a mix of both into the input pane. There is nothing to configure; the fix runs the moment text arrives.
- 2. Let it detect and repair the quotes. The tool scans keys and string values, recognizes quote characters that JSON doesn't allow, and rewrites them as standard straight double quotes so the document becomes valid JSON.
- 3. Copy the repaired JSON. Copy the corrected document and paste it wherever the original needed to be valid JSON, such as a config file, an API payload, or a linter that was rejecting it.
When to use Fix Quotes in JSON
Fix Quotes in JSON repairs documents where keys or values are wrapped in single quotes or the curly smart quotes a word processor introduces. It solves the specific, common failure where JSON is otherwise well-formed except for the wrong quote character.
- Fixing quotes from a word processor. Someone copied a JSON sample out of Google Docs or Word, and autocorrect silently turned every straight quote into a curly one, breaking the document. This repairs them in one pass.
- Converting a JS object literal's quotes. You copied an object literal out of JavaScript source code where developers used single quotes by convention, and now need it recognized as strict JSON.
- Cleaning up JSON pasted from Slack. A message in Slack or a similar chat app auto-converted quotes as you typed, and the JSON someone pasted no longer parses. Fixing the quotes restores it.
- Recovering from a bad find-and-replace. A find-and-replace pass meant to fix one string accidentally swapped quote characters throughout a larger JSON file. This repairs the damage without touching anything else.
Examples
Repair single and smart quotes
Input
{'name': “Ada”, 'age': 36}Output
{"name": "Ada", "age": 36}About the Fix Quotes in JSON tool
Fix Quotes in JSON runs as plain JavaScript in your browser tab, with no server behind it. Fix incorrectly quoted keys and values, such as single quotes. Whatever you put in stays on your device from start to finish.
The tool is part of EditSafely's JSON Tools section, 90 single-purpose utilities built around the same idea: open the page, get the result, keep your data to yourself.
There is nothing to configure. Provide the input and the result appears on its own. A worked example further down the page shows exactly what the tool produces for a real input.
That local-first design has practical benefits beyond privacy. The tool keeps working on a flaky connection once the page has loaded, results are instant because nothing round-trips to a server, and it is safe to use with confidential material.
Frequently asked questions
Is Fix Quotes in JSON free to use?
Yes, it is completely free. All 2,658 tools on EditSafely work without an account, a subscription or usage limits.
Is it safe to paste sensitive or confidential data?
Everything happens locally. Your browser downloads the tool's code once, then does all the processing itself; nothing you enter is transmitted, stored or logged. You can even go offline after the page loads and it will still work.
How much text can I process at once?
There is no fixed limit. Because the work happens on your own device rather than on a shared server, the practical ceiling is your machine's memory, which comfortably handles inputs far larger than typical online tools allow.
Do I need to sign up or install anything?
No. The tool works in any modern browser on desktop, tablet or phone. There is no account to create, no extension to add and no software to install.
How do I use the result?
The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.