How to use Base64 encode and decode
Paste text and click Encode to turn it into Base64, or paste Base64 and click Decode to get the original text back. It supports all languages and symbols. The conversion runs in your browser.
What is Base64?
Base64 is a way to write data using only letters, numbers and a few symbols. It is used to send text or small files through systems that handle plain text only, for example inside emails, JSON, HTML and web addresses. Developers also meet it in API tokens and data URLs.
Encode and decode
- Encode: turns normal text into a Base64 string.
- Decode: turns a Base64 string back into the original text.
Important to know
- Base64 is not encryption. Anyone can decode it, so do not use it to hide passwords or private data.
- Encoded text is about one third longer than the original.
- If decoding fails, the string may be incomplete, contain spaces or use the URL safe variant.
Tips for using Base64
- Remember that Base64 is encoding and not encryption. Anyone can decode it.
- Avoid pasting real passwords or private keys into any online tool.
- If decoding gives strange characters, the original data may be binary, such as an image.
Frequently asked questions
Is my text sent to a server?
No. Encoding and decoding happen in your browser.
Why does my Base64 end with equals signs?
The equals signs are padding that makes the length a multiple of four. They are normal.
Can it decode text in other languages?
Yes, for text that was encoded as standard UTF-8. If the result looks strange, the original may have used a different character set.
Related tools: URL Encoder Decoder, JSON Formatter and Password Generator. See all free tools.
What Base64 is used for
Base64 turns data into plain text made of letters, numbers and a few symbols, so it can travel safely through systems that only handle text, such as email, JSON files and web addresses. Developers see it in data URLs for small images, in authentication headers and in configuration values. It is a way of writing data, not a way of hiding it.
Important: Base64 is not encryption
Anyone can decode a Base64 string in seconds, so never use it to protect passwords or private information. If you need real protection, use proper encryption and a password manager. You can create strong passwords with our Password Generator.
Tips and common problems
- Base64 output is about one third larger than the original data.
- If decoding fails, check for missing characters, extra spaces or line breaks, and a missing equals sign at the end.
- Some systems use a URL-safe variant that replaces plus and slash characters. Convert it back before decoding.
- Text with accents or non-English letters must use the same character encoding when encoding and decoding, usually UTF-8.
- Related tools: URL Encoder and Decoder and JSON Formatter. Read what Base64 is for a simple explanation.
