Skip to content
All tools are 100% free — no sign up, nothing saved 100% free · nothing saved
Try a Tool

Base64 Encoder/Decoder – Free, No Sign-Up

Base64 Encoder/Decoder

Encode text to Base64 or decode Base64 back to text, free and instant. UTF-8 safe, so emoji and other languages work too.

Base64 turns any text into plain letters, numbers, plus, slash and equals signs, so it can travel safely inside web addresses, emails and code. It is encoding, not encryption: anyone can decode it, so never use it to hide a password or a secret.

How to Use the Base64 Encoder/Decoder

Base64 is one of those tools you only need now and then, but when you need it, you need it fast. This free tool encodes text to Base64 and decodes Base64 back to text in seconds, right in your browser. Here is how to use it, step by step.

  1. Pick a direction. Encode is the default. Type normal text and the tool turns it into Base64. To go the other way, click "Decode from Base64" first, then paste your Base64 text.
  2. Type or paste your text. Put your message in the first box. It can be one word, one sentence, or a whole paragraph. The result appears in the second box the moment you type, so there is no button to press.
  3. Read the result. Encoded text uses only letters, numbers, plus, slash and equals signs. Decoded text comes back as normal readable words. A character count under the result box shows how long the output is.
  4. Copy the result. Click "Copy result" to copy the output to your clipboard, then paste it wherever you need it: an email, a config file, a chat message or a piece of code.
  5. Clear and start again. Click "Clear" to empty both boxes and start fresh. Nothing you typed is saved anywhere, so you can encode the next piece of text straight away.
  6. Fix an error if one appears. If you paste text that is not valid Base64 while decoding, a red message appears under the result box. Check the text for missing characters, extra symbols or wrong padding, fix it, and the result will appear.

That is all there is to it. Type, copy, and your text is converted before you have time to reach for another tool.

What Is Base64?

Base64 is a way to turn any data into plain text. It takes bytes, which can hold any value from 0 to 255, and rewrites them using only 64 safe characters: the capital letters A to Z, the small letters a to z, the digits 0 to 9, plus and slash. When the input does not divide evenly, equals signs are added at the end as padding. The result looks like random letters and numbers, but it is not random at all. It is an exact copy of the original data, written in a different alphabet.

The reason it exists is simple. Many systems only handle text safely. Email was built for plain text. Web addresses cannot hold every byte. JSON, the format most web services use to swap data, has no way to carry raw binary at all. Base64 solves this by turning anything, a photo, a file, a password, a block of text, into a string of ordinary characters that can travel through all of those systems without being changed or broken on the way.

It is important to know what Base64 is not. It is not encryption. There is no key, no password and no secret step. Anyone who sees a Base64 string can decode it in seconds, with this tool or any other. It hides nothing. It only changes how the data looks so that text-only systems can carry it. Never use Base64 to protect a password, a private message or anything you truly need to keep secret.

How Base64 Encoding Works

The encoding works in small groups. It takes three bytes of input, which is 24 bits, and splits them into four groups of six bits each. Each six-bit group is a number from 0 to 63, and each number maps to one character in the Base64 alphabet: 0 to 25 are A to Z, 26 to 51 are a to z, 52 to 61 are the digits 0 to 9, 62 is plus and 63 is slash. So every three bytes of input become four characters of output, which is why Base64 text is about one third longer than the original.

When the input does not end on a three-byte boundary, padding fills the gap. One byte left over becomes two Base64 characters followed by two equals signs. Two bytes left over become three characters followed by one equals sign. That is why you often see one or two equals signs at the end of a Base64 string. They are not decoration. They tell the decoder exactly how many bytes were in the last group.

TextBase64
AQQ==
HiSGk=
HelloSGVsbG8=
Hello, World!SGVsbG8sIFdvcmxkIQ==
caféY2Fmw6k=

Notice the last row. The word café holds a letter outside plain English, and it still encodes cleanly. That is because this tool handles text as UTF-8 first, turning every character into its proper bytes before encoding. The same text always gives the same Base64 output, and decoding that output always gives back the exact original text, letter for letter, including accents and emoji.

Where Base64 Is Used

Email is the oldest and most common use. Email attachments travel as Base64 inside the message body, because the mail system was built for text. When you send a photo or a document by email, your mail program encodes the file as Base64, sends it as plain text, and the reader's mail program decodes it back into the file. You never see this happening, but it happens with almost every attachment you send.

Web pages use Base64 too. Small images, icons and fonts are often embedded straight into a web page as data URLs, which are just Base64 strings with a small label in front. This saves the browser from asking the server for another file, which makes the page load a little faster. Web developers also use Base64 when an API expects binary data inside JSON, because JSON can only carry text, numbers and lists, not raw bytes.

You will also meet Base64 in login systems. Basic authentication, a simple way for a browser to log in to a server, sends the username and password joined by a colon and encoded as Base64 in a header. It looks scrambled, but it is not secure on its own, which is why it is only ever used over an encrypted connection. Developers use Base64 in test data, config files and code samples for the same reason: it turns awkward binary data into something you can paste into a text file and read later.

Common Mistakes to Avoid

  • Treating Base64 as encryption. This is the most common mistake of all. Base64 is encoding, not encryption. It has no key and no secret. Anyone can decode it in seconds. Never encode a password or a private note in Base64 and call it safe.
  • Forgetting the padding. A Base64 string must have the right number of characters. If you cut off the equals signs at the end, or lose a character while copying, the decoder will refuse it. Copy the whole string, padding included.
  • Leaving line breaks in the middle. Some systems wrap long Base64 strings across lines. Most decoders ignore the breaks, and this tool strips spaces and line breaks before decoding, but a stray character in the middle will still break it. Paste clean text when you can.
  • Decoding text that was never encoded. Plain English is not valid Base64 most of the time. If you paste a normal sentence into the decoder, you will get an error, and that is correct. Check which direction you need before you paste.
  • Encoding already encoded text. Running Base64 twice gives you a longer string that decodes back to Base64, not to your original text. If your result looks like Base64 when it should look like words, you probably encoded twice. Decode once and check.

Frequently Asked Questions

Is the Base64 Encoder/Decoder free?
Yes. It is free to use, with no sign-up and no account needed. You can encode and decode as much text as you like.

Is Base64 encryption?
No. Base64 is encoding, not encryption. It changes how data looks so text-only systems can carry it, but anyone can decode it without a key. Never use it to protect passwords or private information.

Why does Base64 end with equals signs?
The equals signs are padding. Base64 works in groups of three bytes, and when the input does not divide evenly, equals signs fill the last group. One byte left over gives two equals signs, and two bytes left over give one.

Can Base64 handle emoji and other languages?
Yes. This tool encodes text as UTF-8 first, so accented letters, Arabic, Chinese, emoji and every other character encode and decode correctly. The result is a little longer for non-English text, because those characters use more bytes.

What happens if I paste invalid Base64?
The tool shows a clear error message under the result box and leaves the result empty. Check the text for missing characters, extra symbols or wrong padding, fix it, and the decoded text will appear.

Does the tool save my text?
No. Everything runs in your browser. Nothing you type is sent to a server or stored anywhere.