Free Online Utility • JSON Studio • RFC 8259 Engine

Fix Quotes in JSON

Repair broken JSON quotes — converts curly/smart quotes (`“”‘’`), single quotes (`'`), and unquoted object keys into strict RFC 8259 double quotes.

Reference & JSON Spec RFC 8259
Fixes “ ” ‘ ’ typographic quotes, single-quoted strings, inner quote escaping & bare keys
“ ” ‘ ’Normalized to ASCII "
'It\'s'"It's" (safe inner escape)
bareKey:"bareKey":
FIXED RFC 8259 QUOTES
Valid Double-Quoted JSON

        
100% client-side RFC 8259 JSON Engine Instant

Session Calculation Log

No entries recorded in this session yet.

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

InputOutputTechnical 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.

Frequently Asked Questions

Why does JSON copied from Google Docs or Slack fail JSON.parse()?
Rich-text editors convert straight ASCII `"` (`0x22`) into typographic left/right curly quotes `“` (`U+201C`) and `”` (`U+201D`), which are invalid in RFC 8259.
Does this safely preserve apostrophes like "It's"?
Yes — stateful scanning unescapes `\'` inside single-quoted strings and properly escapes inner double quotes as `\"`.
Does it also fix unquoted object keys?
Yes — bare keys like `{name: "Alice"}` become `{"name": "Alice"}`.