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.
Encode and decode Base64 text, including UTF-8 safe mode.
The last 5 conversions are kept in your browser storage. Nothing is uploaded.
Nothing saved yet — conversions will appear here.
'Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format using 64 printable characters (A-Z, a-z, 0-9, +, /). It is commonly used to transmit data over text-only protocols like email (MIME), or safely pass text and binary payloads in JSON, URLs, and cookies without encoding issues.
'Standard Base64 uses "+" and "/", which have special meanings in URL query parameters and filenames. URL-safe Base64 (RFC 4648) replaces "+" with "-" and "/" with "_", and often omits trailing "=" padding, making it safe to use directly inside URLs and web tokens without extra percent-encoding.
'JavaScript native window.btoa only accepts Latin-1 characters (0-255). Passing multi-byte Unicode characters like Chinese, Japanese, Korean, or emojis throws an error in basic tools. BrowserUtil enables UTF-8 safe mode by default, converting text into standard UTF-8 byte sequences so all Unicode characters encode and decode accurately.
'No. Everything is processed directly inside your browser tab using JavaScript TextEncoder and TextDecoder. Nothing is transmitted over the internet.
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.
'Convert Unix timestamps to readable dates and back, with a live clock, time zones, a time calculator and code snippets.