Base64 Encode / Decode
Encode text as Base64 or decode Base64 content to inspect encoded text data.
What is Base64 Encode / Decode tool?
Base64 represents bytes using a text alphabet, which makes it useful for inspecting encoded payloads or embedding small images in data URLs. It is not encryption: anyone who receives the value can decode it. This tool processes text and selected image files locally in the browser, without an account or a conversion upload.
Pick text or image processing
Use Text Encode for ordinary text, including non-ASCII characters: the input is first encoded as UTF-8 bytes. Use Text Decode only when the decoded bytes are valid UTF-8. An arbitrary binary file is not necessarily text, even if its Base64 characters are valid. For image data, use the separate image modes rather than expecting readable text.
Verify a short example
Text input:
Hello
Base64 output:
SGVsbG8=
Decoding the output returns the original five letters. A trailing newline is part of the input and changes the encoding; check for invisible whitespace when comparing samples from a terminal, an email, or an API response. The equals sign is padding, not part of the original message.
Work with image data URLs
Image to Base64 reads a selected local image and produces a data URL containing its media type and encoded bytes. Base64 to Image accepts a full image data URL or raw Base64. Preserve the media type when possible: raw payloads are labeled PNG for preview and download, not converted into PNG bytes. A syntactically valid payload can still contain corrupt or unsupported image data, so verify the browser preview before downloading.
Recognize incompatible inputs
The text decoder rejects invalid Base64 and bytes that are not valid UTF-8. A complete data:image/png;base64,... URL belongs in image mode, not text decoding. Standard Base64 uses plus and slash characters; this tool does not offer a Base64url switch for the minus and underscore alphabet used by JWT. Use JWT Decoder for token inspection, not this tool as a signature verifier.
Base64 usually increases byte size by roughly one third, plus any data URL prefix. It is not an image compressor. Use Image Compressor before embedding an image, and URL Encode / Decode when a standard Base64 value must become a URL parameter. Large images and strings can consume substantial memory; keep the original file and avoid using browser conversion as your only copy.
FAQ
No. It is a reversible byte encoding with no secret key. It provides neither confidentiality nor proof that a message is authentic. Never hide credentials merely by encoding them.
The decoded bytes may not be valid UTF-8, for example an image or another binary format. Use image mode for supported images; this text decoder is not a general binary-file extractor.
Yes. Image modes read a selected local image into a data URL or preview and download image Base64. The browser must support the actual image format; a valid Base64 string alone does not prove the image is intact.
There is no Base64url mode. Standard Base64 uses + and /, while Base64url uses - and _. Use JWT Decoder to inspect JWT fields, and a trusted cryptographic verifier to check signatures and claims.
No. Encoding generally adds about one third to byte size, plus any data URL prefix. Compress or resize the source image first if transfer size matters.
Raw Base64 has no media-type prefix, so this tool labels it PNG by default. That does not convert the bytes. Supply a complete data URL with the correct image media type and verify the preview.
No. The conversion runs locally, including reading a selected image file. Copied results are still sensitive when the source is sensitive; sharing the encoded value shares the underlying data.



