Base64 Encoder / Decoder

UTILITY Convert text to Base64 and decode it back
💡
How to use Base64 Encoder / Decoder
Paste text or a Base64 string into the input area. Choose whether to encode or decode.
INPUT
RESULT
Enter text to convert.

What this tool does

Encode text and URLs as Base64 or decode Base64 back into text in your browser. Copy the result with one click.

Illustration explaining how Base64 Encoder / Decoder works

How to use it

  1. Paste text or a Base64 string into the input area.
  2. Choose whether to encode or decode.
  3. Review the result.
  4. Copy the output and use it where needed.

Supported input and notes

Base64 is encoding, not encryption, and should not be used to protect confidential information. Extra line breaks or whitespace may prevent a Base64 string from decoding correctly.

When it is useful

Useful for working with URLs, data URIs, APIs, and other text-based data handling tasks.

Convert Text to Base64

Convert entered text to Base64 and decode Base64 back into readable text. Japanese text is supported as well.

Encode

Converts ordinary text into a Base64 string.

Decode

Reads a Base64 string and restores the original text.

Japanese Text Is Supported

Japanese characters can be encoded to Base64 and decoded back into Japanese text.

Base64 Is Not Encryption

Base64 changes how data is represented. It can be decoded back to the original content, so it is not a way to keep information secret.

Do not use it to protect secrets: Base64 does not secure passwords or personal information. Anyone who decodes the string can read the original content.

Text Only

This tool works with text pasted into the input area. It does not select and convert image, PDF, or other files.

Invalid Base64 Shows an Error

If the input cannot be read as Base64, the tool shows an error instead of trying to repair the text.

Outer Whitespace Is Trimmed

When decoding, spaces at the beginning and end of the input are removed before the Base64 text is read. The result can then be copied.

FAQ

Can I encode Japanese text?

Yes. Japanese text is supported.

Does Base64 keep the content secret?

No. Base64 is not encryption and can be decoded back to the original text.

Can I convert images or PDFs?

No. This page is designed for text input, not file conversion.