Base64 Encoder / Decoder
Encode text or files to Base64 and decode Base64 back to text or a file. UTF-8 and URL-safe.
How to use the Base64 Encoder / Decoder
- Choose Encode or Decode.
- Type or paste text, or select a file to encode.
- Toggle URL-safe mode for Base64URL (used in JWTs and URLs).
- Copy the result or download decoded binary data as a file.
Examples
"Hello, κόσμε" → SGVsbG8sIM66z4zPg868zrU=
"user:pass" → dXNlcjpwYXNz
Features
- Full UTF-8 support
- URL-safe Base64URL
- File to Base64 and Base64 to file
- Data-URI output option
- Local processing
About this tool
Base64 turns binary data into plain ASCII text so it can travel through systems designed for text, such as email, JSON and HTTP headers. It is common in data URIs, API payloads, certificates and authentication headers.
Frequently asked questions
Is Base64 encryption?
No. Base64 is an encoding that anyone can reverse. Never use it to protect secrets.
What is Base64URL?
A variant that replaces + and / with - and _ and usually omits = padding, so it is safe in URLs and file names.
Why is the output larger?
Base64 represents every 3 bytes as 4 characters, so output is about 33% larger.
Privacy
Processed locally in your browser. Your data never leaves your device. The tool's code runs in your browser tab; nothing you enter or select is uploaded, and nothing is saved after you close the page.