ToolLane.online

How to Encode and Decode Base64

Quick answer: To encode, paste your text into the Base64 Encoder and press Encode to Base64. To decode, paste the Base64 code into the Base64 Decoder and press Decode Base64.

Base64 turns text into a string of safe letters, numbers and a few symbols, so it can travel in emails, web addresses and data files without breaking. Encoding the text first removes that problem, and decoding it at the other end gives back the exact original text.

ToolLane has a tool for each direction, and both run in your browser, so your text is never uploaded. Both are free, with no sign-up, and both accept up to 1,000,000 characters. The steps are the same in both directions: paste, press one button, and copy the result.

How to encode text to Base64

  1. Open the Base64 Encoder tool and type or paste your text into the first box.
  2. Press Encode to Base64.
  3. Read the Base64 code in the result box.
  4. Press Copy result to copy it, or use the download link to save it as a text file.

How to decode Base64 back to text

  1. Open the Base64 Decoder tool and paste the Base64 code into the first box.
  2. Press Decode Base64.
  3. Read the original text in the result box.
  4. Press Copy result to copy it, or use the download link to save it as a text file.

What Base64 is not

Base64 is not encryption. Anyone can decode Base64, so never use it to hide passwords or secrets. It only changes how the text looks, not who can read it: a password written in Base64 is still a password anyone can recover in one click. The decoder also only decodes text you paste; it does not read Base64 out of a file.

When decoding fails

If the code is invalid, you get a clear error and no output, so a bad code is never shown as a wrong answer. That usually means a character was lost when the code was copied, or extra text was pasted in with it. Check that you copied the whole code, including any = signs at the end, and that no spaces or line breaks crept into the middle. Paste the code again cleanly and press Decode Base64 once more.

Frequently asked questions

Is Base64 encoding and decoding free?

Yes. Both tools are free, with no sign-up, and your text never leaves your browser.

Is Base64 encryption?

No. Anyone can decode Base64, so never use it to hide passwords or secrets.

What if the code is invalid?

You get a clear error and no output, so a bad code is never shown as a wrong answer.

← All tools