JSON to JavaScript Object
Convert JSON into a JavaScript object literal with identifier-friendly keys.
This tool runs entirely in your browser. Your input is never uploaded.
JSON
JavaScript object
Paste some JSON first.
What is this tool?
Paste JSON on the left and get a ready-to-use JavaScript object literal on the right. Keys that are valid identifiers are written without quotes; other keys stay quoted, and nested objects and arrays are indented.
How to use it
- Paste JSON.
- Copy the generated object or download it as a
.jsfile.
Privacy
Conversion runs entirely in your browser.