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.
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.