JSON Formatter
Pretty-print, minify and validate JSON with clear error positions, a collapsible tree view and a local history of your last 5 documents.
Convert JavaScript / TypeScript object literals to clean standard JSON (and back). Supports unquoted keys, single quotes, comments, trailing commas, and formatting options.
JSON is a strict data interchange format requiring double-quoted property names and forbidding comments, single quotes, trailing commas, and function/undefined values. JavaScript objects are flexible code constructs that support unquoted keys, single quotes, template strings, comments, trailing commas, and complex types.
Yes! You can paste objects copied directly from console.log output, code files, or variable declarations like 'const config = { ... };' or 'export default { ... };'. The converter automatically extracts the object payload.
By default, functions and undefined are omitted in JSON mode, conforming to standard JSON.stringify behavior. You can also configure them to convert to null or keep functions as stringified representations. Dates are converted to ISO 8601 strings.
No. All conversion is executed entirely in your browser using client-side JavaScript. Your code and data never leave your device.
Pretty-print, minify and validate JSON with clear error positions, a collapsible tree view and a local history of your last 5 documents.
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.