Base64 Encoder/Decoder
Encode text and files to Base64 format or decode Base64 strings back to readable text. Supports images with live preview and data URL generation — everything runs locally in your browser.
Base64 Converter
About Base64 Encoder/Decoder
Base64 is a way to write binary data or text using only letters, digits, + and /, so it can travel safely through systems that only handle text, such as emails, JSON and URLs. This tool encodes text to Base64 and decodes it back, and it can also encode a file, such as an image, and decode Base64 or a data URL back to a file.
Text is handled as UTF-8, so accented letters, Arabic, Chinese and emoji encode correctly. When you decode, it also accepts URL-safe Base64, which uses - and _ instead of + and /, ignores line breaks, and does not need the trailing = padding. For images it shows a preview and can give you a ready-to-use data URL.
Base64 is an encoding, not encryption. Anyone can decode it, so it does not protect passwords or secrets. It also makes data about a third larger. Everything is done in your browser, so your text and files are not uploaded.
Who uses it and when
Embedding images
Turn a small image into a data URL for HTML or CSS.
Reading encoded values
Decode a Base64 string from an API or config.
Basic auth and headers
Encode or decode credentials in a test header.
Files and text
Convert both text and files in one tool.
Why use this Base64 Encoder/Decoder
Encode and decode Base64 for text and files.
Both directions
Encode and decode text or files.
UTF-8 and URL-safe
Any language, and URL-safe input accepted.
Browser-only
Nothing is uploaded.
How it works
Choose text or file
Pick the mode.
Encode or decode
Paste the text, upload a file, or paste Base64.
Copy or download
Take the result.
Frequently asked questions
Is Base64 encryption?
No. It is a reversible encoding that anyone can decode.
Why does decoding fail?
The text may not be valid Base64, or it may be incomplete. Remove extra characters and try again.
Does it support URL-safe Base64?
Yes, when decoding. - and _ are accepted, and missing padding is fine.
Are my files uploaded?
No. Files are converted in your browser.