Base64 Encode/Decode
Encode UTF-8 text to Base64 (standard or URL-safe) or decode a Base64 string back to text, with binary data detected and shown as a hex dump.
- Runs in your browser
- Free to use
About this tool
Base64 Encode/Decode converts text to Base64 and back entirely in your browser. Encoding uses UTF-8, so accented characters and emoji round-trip correctly; decoding accepts standard and URL-safe input, with or without padding and line breaks, and detects whether the result is text or binary. For binary payloads a hex dump and a download button are offered.
How to use it — quick steps
- 01
Enter the text or base64
Type or paste the text or base64 in the field above, for example Hello, world!. Nothing is uploaded.
- 02
Adjust the options
Pick the settings that fit your case; the defaults work for most people. Changes apply instantly.
- 03
Press "Convert"
Press "Convert" or Ctrl + Enter. The result appears instantly below the form. Results can be copied.
Key features of this tool
Nothing leaves your browser
The processing is plain JavaScript that runs on your device: the text you paste is never uploaded to our servers or to anyone else.
Instant results
Results appear the moment you press the button, even for long inputs, and every block has copy and download actions.
Works everywhere
No installation, no account and no limits: the tool works on desktop and mobile, in any modern browser, as often as you like.
Frequently asked questions
What is Base64?
A way to represent binary data with 64 printable characters (A–Z, a–z, 0–9, + and /), used in e-mail, data URLs, JSON and HTTP Basic auth. It grows data by about 33%.
What is Base64url?
The variant used in URLs and JWTs: + becomes -, / becomes _ and the = padding is dropped.
The decoded output is binary garbage
The Base64 does not contain text. A hex dump is shown instead; if it is an image, PDF or media file use the dedicated Base64 to Image / PDF / Video tools.
Are my files or data uploaded?
No. The tool is plain JavaScript that runs in your browser; the files or data you provide here are never uploaded to our servers.