About the Base64 Encoder
Base64 represents data using only 64 safe characters, which is why it is used in email attachments, data URLs, HTTP Basic authentication headers and JSON Web Tokens. This encoder converts any text — including accented letters, Arabic, Chinese and emoji — by first turning it into UTF-8 bytes, the way servers expect.
Need the result in a URL or a filename? Enable URL-safe mode to replace + and / with - and _ and drop the padding, as used by JWTs.
How to use the Base64 Encoder
- Type or paste the text you want to encode.
- Optionally enable URL-safe output or encode each line separately.
- Copy the Base64 result, which updates as you type.
Features
- Encode and decode
- Full UTF-8 support
- URL-safe Base64 (Base64URL)
- Line-by-line mode
- Live output and download
Supported formats
- Plain text
- .txt
- .json
- .csv
- .xml
Frequently asked questions
Is Base64 encryption?
No. Base64 is an encoding, not encryption. Anyone can decode it, so never use it to protect passwords or private data.
Why is the Base64 output longer than my text?
Base64 uses 4 characters for every 3 bytes, so the output is about 33% larger than the input.