Switch between Encode and Decode, then paste your text or Base64 string. The output updates instantly. Works with UTF-8 text, including emoji and non-Latin characters. You can also upload any file to encode it directly — images, PDFs, anything — and when decoding, a data URI (data:image/png;base64,...) is detected automatically and previewed if it's an image.
All tools / Encoding
Base64 Encoder & Decoder
Convert text to Base64 or decode Base64 back to plain text. Runs entirely in your browser.
How this works & FAQ
What is Base64 used for?
Base64 encodes binary or text data into ASCII characters, commonly used for embedding data in URLs, JSON, email attachments, and data URIs.
Is Base64 encryption?
No. Base64 is an encoding scheme, not encryption — anyone can decode it. Don't use it to protect sensitive data.
Why do I get an error decoding?
The input isn't valid Base64 — check for missing characters or extra whitespace/newlines.
What is URL-safe Base64?
Standard Base64 uses + and /, which have special meaning in URLs. URL-safe Base64 replaces them with - and _ and drops the trailing = padding, so the result can be used directly in a URL or filename.
Can I turn a Base64 string back into a downloadable file?
Yes — in Decode mode, click the download icon next to the output. If the decoded bytes match a known image format (PNG, JPEG, GIF, WebP) it downloads with the right extension and shows a preview automatically.