Online tool
Base64 encoder and decoder
Convert text to Base64 and back. Works with accents, emoji and any language, and offers URL-safe Base64.
Loading the tool…
- Choose a mode
- Paste your input
- Copy the result
- Free
- No sign-up
- Runs on your device
More text and generator tools
- Password generatorCreate a strong, random password in one click. It is made on your device with the browser’s…
- Word counterPaste or type your text to count words, characters, sentences and paragraphs, and to estimate…
- Colour converterConvert a colour between HEX, RGB and HSL, copy the values, and check whether black or white…
- JSON formatterPaste JSON to make it readable, check that it is valid, or shrink it to one line. Errors show…
- QR code generatorCreate a QR code for a website, text, Wi-Fi login, e-mail or phone number and download it as PNG…
- Text case converterChange the case of any text with one click: capitals, small letters, title case, sentence case…
- Lorem ipsum generatorPlaceholder text for designs, mockups and templates: choose how many paragraphs and sentences,…
- URL encoder and decoderTurn spaces and special characters into %20-style codes for web addresses, or decode them back…
About base64 encoder and decoder
Base64 writes any data using only letters, digits, plus and slash, so it can travel through systems made for plain text, such as e-mail, JSON and URLs. This tool encodes text to Base64 and decodes it back, and it handles UTF-8 correctly, so accents, emoji and non-Latin scripts survive the round trip.
The URL-safe option replaces + and / with - and _ and removes the = padding, as used in web tokens.
How to encode or decode Base64
- Choose a modeEncode text to Base64, or decode Base64 to text.
- Paste your inputThe result appears at once.
- Copy the resultPress Copy.
Good to know
- Base64 is not encryption: anyone can decode it. Never use it to hide passwords.
- Base64 makes data about 33% longer.
Frequently asked questions
Is Base64 secure?
No. It is an encoding, not encryption.
Why does decoding fail?
The text may contain characters that are not Base64, be cut off, or decode to binary data (like an image) instead of text.
Is my text sent to a server?
No. Everything is calculated in your browser, so your text stays on your device.