What this Base64 tool does
This free Base64 encoder and decoder converts text to Base64 and back, and turns any file into Base64 or a data URL. Text is handled as UTF-8, so accents, emoji and every alphabet survive the round trip. When the Base64 you decode is really a file, such as a PNG or a PDF, you can download it as that file.
How to encode or decode text
- On the Text tab, choose Encode or Decode.
- Type or paste into the left box. The result appears on the right as you type.
- For links and tokens, switch on URL-safe (Base64url) when encoding.
- Click Copy, or Use result as input to reverse the step.
How to encode a file
- Open the File tab and drop a file (up to 10 MB), or click to choose one.
- Pick the Output: Plain Base64, Data URL or URL-safe (Base64url).
- Click Copy or Download to save the Base64 as a text file.
Very long results show only the first 100,000 characters on screen to keep the page fast. Copy and Download always use the full result.
What decoding accepts
- Standard Base64 with or without
=padding. - URL-safe Base64 with
-and_. - Line breaks and spaces, which are ignored (common in emails and PEM files).
- Full data URLs such as
data:image/png;base64,iVBOR….
Problems and fixes
- “… isn’t a Base64 character.” Something other than Base64 slipped in, often a quote mark or part of the surrounding code. Copy only the Base64 itself.
- “This Base64 is cut off.” A character is missing at the end. Copy the full value again.
- The decoded text looks garbled. The original wasn’t UTF-8 text, or it was a file. If the tool shows a file, download it.
Privacy
Encoding and decoding run in your browser. Text and files stay on your device.
When Pro helps
Pro doesn’t add anything to this tool beyond removing ads.
Related tools
- JSON formatter for the JSON your Base64 sits in
- Favicon generator for site icons from an image
- Password generator for real secrets, since Base64 isn’t encryption