Base64 Encoder & Decoder
Encode text to Base64 or decode it back — with URL-safe and file support, 100% in your browser.
About Base64 Encoder & Decoder
Switch between Encode and Decode and your text is converted instantly. Encoding is fully UTF-8 aware, so accented characters and emoji round-trip correctly, and the URL-safe option uses the - and _ alphabet with no padding for use in URLs, JWTs and filenames.
You can also turn any file into a Base64 data URL — handy for embedding small images or fonts directly in CSS or HTML. Everything runs locally in your browser; your text and files are never uploaded.
How to use Base64 Encode / Decode
- Choose encode or decode and enter the text. Use URL-safe output when the destination expects the - and _ alphabet.
- Copy the result and check that the receiver expects text, rather than arbitrary binary data.
Limitations and common mistakes
Base64 is an encoding, not encryption. Anyone who receives the value can decode it; do not use it to conceal credentials.
Missing padding and URL-safe alphabets differ between consumers. An invalid UTF-8 byte sequence cannot always be represented as readable text.
The tool processes its input locally on your device. Read our privacy policy for analytics, storage and network details.
Encode text
Many hands make light work.
TWFueSBoYW5kcyBtYWtlIGxpZ2h0IHdvcmsu
Toggle URL-safe for the - / _ alphabet without padding, or decode to reverse it.
Frequently asked questions
Does it handle Unicode and emoji?
Yes. Text is encoded as UTF-8 before Base64, so accented letters, non-Latin scripts and emoji encode and decode without corruption.
What is URL-safe Base64?
A variant that replaces + and / with - and _ and drops the = padding, so the result is safe to use in URLs, filenames and JWTs. Toggle it on for both encoding and decoding.
Can I Base64-encode a file?
Yes. Use the File → Base64 section to turn an image or other file into a Base64 data URL you can paste straight into CSS or HTML.
Is my data uploaded anywhere?
No. All encoding and decoding happen locally in your browser; nothing is transmitted.
For related tasks, explore URL Encode / Decode and JWT Decoder. Their guides explain the different inputs, assumptions and output formats.