JS Object to JSON
Convert JavaScript / TypeScript object literals to clean standard JSON (and back). Supports unquoted keys, single quotes, comments, trailing commas, and formatting options.
Pretty-print, minify and validate JSON with clear error positions, a collapsible tree view and a local history of your last 5 documents.
Formatted JSON appears here.
The last 5 documents you formatted are kept in your browser storage. Nothing is uploaded.
Nothing saved yet — formatted documents will appear here.
No. Parsing and formatting run with JavaScript inside your browser tab, so your data never leaves your device.
'The last 5 documents are kept in this browser localStorage. Delete a single entry, or clear everything at once, from the history card.
'No. The standard JSON parser is used, so comments, trailing commas and single quotes must be removed first. The error position tells you where to look.
'Only the output order changes — values stay untouched. Sorting is applied to the formatted output, and array order is never modified.
Convert JavaScript / TypeScript object literals to clean standard JSON (and back). Supports unquoted keys, single quotes, comments, trailing commas, and formatting options.
Encode and decode Base64 text, including UTF-8 safe mode.
'Convert Unix timestamps to readable dates and back, with a live clock, time zones, a time calculator and code snippets.