Input — paste anything

Fix Unquoted Keys in JSON — Add Missing Double Quotes

JSON requires every key to be in double quotes. JavaScript object literals use bare identifiers, so pasting JS code into a JSON context always fails. JSONBlitz wraps all unquoted keys in double quotes automatically — paste below and get valid JSON instantly.

⚡ Auto-fixed issues see changes ↓
Ready — paste JSON or any text containing JSON
🌳
Tree view appears here after processing
Click nodes to copy JSONPath • Single-click a leaf to copy value
Formatted output appears here...
Process JSON to generate code...
Insights appear after processing
Shows what JSONBlitz changed to fix your JSON.
No changes recorded yet.
⚖ Compare two JSONs →
⌘↵ fix & copy  ⌘⇧V paste & fix  ⌘K actions © 2026 JSONBlitz

Fix Unquoted Keys in JSON — Add Missing Double Quotes Online Free

JSON requires all object keys to be wrapped in double quotes. JavaScript objects use unquoted keys, so copying JS code directly into a JSON context throws an "unexpected token" or "expected property name" error. JSONBlitz adds the missing quotes automatically.

Why Unquoted Keys Break JSON

JavaScript allows bare identifiers as object keys: {name: "Alice"} is valid JS but invalid JSON. The JSON specification requires every key to be a quoted string: {"name": "Alice"}. Developers frequently hit this error when pasting object literals from their source code into API request bodies or config files.

How JSONBlitz Fixes Unquoted Key Errors

Paste the object with unquoted keys and JSONBlitz wraps every bare key in double quotes. Keys that contain special characters or spaces are handled correctly. The Diff tab shows exactly which keys were quoted.

Frequently Asked Questions

Do JSON keys need to be quoted?
Yes. The JSON specification requires all object keys to be double-quoted strings. Bare identifiers like {name: "value"} are valid JavaScript but will always fail a JSON parser.
What about keys with hyphens or spaces?
JSONBlitz handles these correctly — they get quoted just like any other key.
Does this work for nested objects?
Yes. JSONBlitz quotes unquoted keys at all levels of nesting.

© 2026 JSONBlitz — unquoted keys JSON, fix JSON unquoted key error, expected property name JSON, JSON key must be string

Recent Sessions