How Fix Quotes in JSON Works
Fix Quotes in JSON repairs curly Word/Docs quotes (`“”`, `‘’`), JavaScript/Python single quotes, unquoted object keys, and unescaped inner double quotes inside single-quoted strings to produce valid RFC 8259 JSON.
JSON (JavaScript Object Notation, RFC 8259) is the universal structured data interchange format across REST APIs, microservices, configuration pipelines, and document databases. Every parsing, transformation, and serialization step in this utility runs completely client-side inside your browser with zero server uploads, guaranteeing instant turnaround and strict privacy even for sensitive payloads.
Context-Aware Quote Normalization
1. Replace smart quotes “ ” -> " and ‘ ’ -> ' 2. Statefully scan single-quoted strings: escape internal " as \" and unescape \' to ' 3. Quote bare identifier keys
Copying JSON out of Slack, Google Docs, or PDFs routinely injects typographic curly quotes that break `JSON.parse()`; this fixes them safely without mangling apostrophes inside text.
Worked Reference Examples
| Input | Output | Technical Note |
|---|---|---|
| {“k”: “v”} | {"k": "v"} | Curly quotes fixed |
| {'msg': 'It\'s "ok"'} | {"msg": "It's \"ok\""} | Escapes inner quotes safely |
| {key: 1} | {"key": 1} | Quotes bare keys |
Practical Developer & Data Engineering Workflows
Fixing Copy-Pasted JSON from Docs/Slack/PDF
Repair invisible curly quotes `“”` causing `Unexpected token` errors.
Converting JS Literals to Strict JSON
Safely quote keys and normalize single-quoted strings.
Compatibility, Edge Cases & Best Practices
Verified live via `JSON.parse()` so a green `VALID JSON ✓` badge confirms full RFC 8259 compliance.
Copy verified outputs straight to your clipboard or download clean files ready for REST clients, CI/CD configs, database seeds, and unit test suites.