Base64 Encode & Decode

Convert text and files to and from Base64. Runs entirely in your browser — nothing is uploaded.

📖 Read the guide: What Is Base64 Encoding? →

Input
Output

How it works

1
Pick a mode
Choose Encode (text → Base64) or Decode (Base64 → text).
2
Enter your data
Type or paste into the input — or load a file to get its Base64.
3
Tune options
Toggle URL-safe output for tokens and query strings; UTF-8 is handled automatically.
4
Copy the result
The output updates live — copy it with one click.

Frequently Asked Questions

Yes — emoji and non-Latin text encode and decode correctly using proper UTF-8 handling.

It replaces + and / with - and _ and drops padding, so the result is safe in URLs and JWT-style tokens.

No. Files are read and encoded entirely in your browser — nothing is sent to a server.

Encode text to Base64 and decode Base64 back to text online, free and instantly. The converter is UTF-8 safe, supports URL-safe output for tokens and query parameters, and can turn a file into a Base64 string or data URI. Everything runs locally in your browser, so sensitive strings and files never leave your device — handy for debugging APIs, embedding small assets and working with encoded credentials.