JSON Formatter
Beautify, minify, validate, and sort JSON in your browser while reviewing syntax errors, nested data, arrays, and object keys.
The inputted text is too long to include in a share link.
Decode Base64 values into UTF-8 text or encode text as standard Base64 in your browser, with clear input and copy controls.
Use this tool when you need to inspect an encoded value, prepare a text payload, or create URL-safe Base64 without writing a script.
Base64 is useful when binary or structured text needs to travel through systems that expect plain text, such as JSON payloads, XML documents, email bodies, data URLs, configuration files, and API examples.
Developers often run into Base64 while reading API docs, debugging tokens, inspecting webhook payloads, preparing Basic Auth examples, or working with small embedded files. It is also common in email and MIME workflows where long encoded values may be wrapped across multiple lines.
Base64 makes data easier to transport through text-only systems, but it does not make that data secret. If the decoded value contains a credential, token, private key, or personal information, treat it as sensitive even though the encoded version may look unreadable at first glance.
The tool converts text to bytes in the selected character set, encodes those bytes with the browser's Base64 functions, and applies optional newline, per-line, MIME chunking, and URL-safe formatting rules. Decoding reverses URL-safe substitutions, restores padding when needed, and converts bytes back into text in your browser.
Standard Base64 uses letters, numbers, plus signs, slashes, and optional equals-sign padding. URL-safe Base64 swaps the plus and slash characters for hyphen and underscore so the encoded value is easier to place in URLs, filenames, and token-like strings.
Character set matters because Base64 encodes bytes, not abstract text. UTF-8 is the right choice for most modern content, while ASCII and ISO-8859-1 can help when you are checking older systems or examples that were encoded with narrower character assumptions.
Base64 converts bytes into a limited text alphabet so binary or arbitrary text can travel through systems built for text. It does not encrypt, hash, compress, authenticate, or hide the original data. Anyone who receives the encoded value can normally decode it. Never use Base64 alone to protect a password, token, personal record, or secret configuration.
The standard and URL-safe alphabets are similar but not identical. URL-safe Base64 replaces characters that can be awkward in URLs and filenames, and some protocols omit trailing padding. RFC 4648 defines the common alphabets and padding rules. Match the variant required by the protocol rather than changing characters until decoding happens to work.
Text must become bytes before it is encoded. UTF-8 is the usual choice for modern text, but older systems may use another character encoding. If decoded text contains replacement characters or mojibake, the Base64 may be valid while the assumed character encoding is wrong. Ask what byte encoding produced the original value.
Whitespace and prefixes can also matter. Email bodies may wrap long encoded lines, data URLs begin with media-type metadata, and PEM files place Base64 between header and footer lines. Remove only the wrapper the relevant format defines. A blind cleanup can alter data or hide that the input belongs to a larger structured format.
Base64 increases size because it represents each group of bytes with more text characters. It is useful for transport compatibility, not storage efficiency. For large files, use the application's file-upload or binary channel instead of copying a huge encoded string into a form. Confirm size limits before embedding data in JSON, HTML, or a URL.
When comparing encoded values, first decide whether the protocol requires a canonical spelling. Different padding or line wrapping can decode to the same bytes, yet a signature or exact string comparison may still fail. For signed data, follow the protocol's canonicalization steps and do not reformat the value casually.
A successful decode does not prove the result is safe to open or execute. The bytes may represent an image, archive, document, executable, or malicious payload rather than readable text. Identify the expected media type, enforce size limits, and scan untrusted files using the controls appropriate to the application. Never run decoded script or command text merely because it looks familiar.
Built and maintained by utilkit. Updated . Found an issue? Send corrections to contact@utilkit.com
Beautify, minify, validate, and sort JSON in your browser while reviewing syntax errors, nested data, arrays, and object keys.
Check a public website's redirect chain and HTTP security headers, including CSP, HSTS, frame controls, and referrer policy.
Explain cron expressions in plain English, preview upcoming run times, and generate five-field, seconds, or Quartz-style schedules.