JavaScript Object to JSON
Convert a JS object literal into strict, valid JSON.
JavaScript object literal
Strict JSON
About the JavaScript Object to JSON
Paste a JavaScript object or array literal — with unquoted keys, single quotes, comments, or trailing commas — and convert it into strict, standards-compliant JSON.
Examples
Unquoted keys
{ name: 'Ada', age: 28 }Output
{"name":"Ada","age":28}Keyboard shortcuts
- Copy the main outputCtrl / ⌘ + Shift + C
- Download the resultCtrl / ⌘ + S
- Share this toolCtrl / ⌘ + Shift + S
- Reset the inputsAlt + R
- Open the tool search paletteCtrl / ⌘ + K
Related tools
AAB (Android App Bundle) Analyzer
Dev Utilities
Open an .aab file and inspect its manifest, modules, ABIs, densities and size breakdown.
Android APK Analyzer & Explorer
Dev Utilities
Open an APK, decode its manifest and browse or download every file inside.
APK Certificate Inspector (SHA-1 / SHA-256)
Dev Utilities
Read an APK's signing certificate and get its SHA-1, SHA-256 and MD5 fingerprints.
Archive Extractor & File Explorer
Dev Utilities
Unzip ZIP, TAR, GZ, 7Z, RAR and more in your browser — browse folders, preview and download files.
Code Minifier & Beautifier
Dev Utilities
Minify or beautify JavaScript, CSS, HTML, JSON, XML, SQL, Java, Kotlin, C#, C/C++, Go, Swift, PHP, Python and YAML.
HTML to JSX Converter
Dev Utilities
Convert HTML markup into clean React/JSX component code.
Frequently asked questions
Comments
No login needed. Comments appear after a quick review.
Loading comments…
Version 1.0.0 · Updated 2026-08-06 · Runs entirely in your browser