Base64 Encode
Base64 output
How to Use Base64 Encode
1
Enter Your Text
Type or paste the plain text you want to encode into Base64.
2
Choose Options
Enable URL-safe mode for tokens, add line breaks, or encode each line as a separate Base64 string.
3
Copy or Download
Copy the encoded output instantly or download it as a text file.
Key Features
UTF-8 Safe Encoding
Emojis, CJK characters, and accented letters encode correctly — no data corruption.
URL-Safe Mode
Swap + and / for - and _ and strip padding for use in URLs and JWTs.
Per-Line Encoding
Encode each line of your input as an independent Base64 string.
File to Data URI
Upload any file and get its Base64 data URI for embedding inline.
100% Client-Side
Encoding happens locally in your browser with zero server interaction.
Frequently Asked Questions about Base64 Encode
The native btoa() function only supports Latin-1 characters. This tool encodes via UTF-8 first so emojis and CJK work correctly.