Menu
PDF Tools
Image Tools
Converters & Utilities
Seller & Print Tools
Accounting & Business
Calculators
Text & Writing Tools
Developer & Web Tools
Creator & Social Tools
Browser Utilities & Games
Document & Design Makers
Text & Developer Tools
Exam & Form Tools

Base64 Encode and Decode

Base64 Encode and Decode turns text into Base64 and back again, including accents, emoji and other scripts. It runs in your browser, so nothing is sent.

How to use Base64 Encode and Decode online

  1. Choose the direction. Pick text to Base64, or Base64 to text.
  2. Paste your input. Put the text or the Base64 in the box.
  3. Pick the letters. When encoding, tick URL-safe letters if the result goes into a link or a token.
  4. Copy the result. Press Copy. An error message tells you if the Base64 is not valid.

Why use this free Base64 Encode and Decode

  • Encode and decode
  • UTF-8: accents and emoji work
  • URL-safe option
  • Accepts line breaks and missing padding
  • Clear error messages
  • Nothing sent, nothing stored

What Base64 is for

Base64 writes any bytes using only letters, digits, plus and slash. That makes it possible to put binary data or special characters into places that accept plain text only, such as e-mail bodies, JSON fields and addresses. It is an encoding, not a lock: anyone can decode it, so never use it to hide a secret.

Text and UTF-8

Text is first turned into bytes with UTF-8, which handles every script. That is why accents, emoji and Hindi text survive the round trip. The word Hello becomes SGVsbG8=. When decoding, the bytes are read as UTF-8, and if they are not valid text, the tool says so.

The URL-safe form

Standard Base64 uses plus and slash, which have special meanings in links. The URL-safe form uses a hyphen and an underscore instead and drops the equals padding. The text ??>> is Pz8-Pg in that form. The decoder accepts both forms and ignores line breaks and spaces.

Limits

This page handles text. It does not take files. Very long text is fine but uses more memory. If decoding fails, check for a stray character or a missing piece at the end.

Base64 Encode and Decode: frequently asked questions

Is Base64 encryption?
No. It is only a way of writing bytes as text. Anyone can decode it.
Why do accents and emoji work?
The text is converted with UTF-8 before encoding, which supports every script.
What is URL-safe Base64?
A variant with a hyphen and an underscore in place of plus and slash, usually without padding.
Why does decoding say the bytes are not text?
The Base64 may hold a picture or other binary data, which is not UTF-8 text.
Does it accept line breaks?
Yes. Spaces and line breaks are ignored when decoding.
Does my text leave the page?
No. Encoding and decoding both happen in your browser.

Related searches for Base64 Encode and Decode

  • Base64 Encode and Decode online
  • free Base64 Encode and Decode
  • Base64 Encode and Decode online free
  • Base64 Encode and Decode for mobile
  • Base64 Encode and Decode without sign up
  • Base64 Encode and Decode – Text & Developer Tools

Base64 Encode and Decode is a free online tool on MAITBOX, in the Text & Developer Tools group. It runs in your browser, so what you type is not sent to a server. It works on Android and iPhone, and on Windows, Mac and Linux, with no download and no account.

More tools in Text & Developer Tools →

Search tools