Base64 Encoder / Decoder

UTF-8 safe Base64 encoding and decoding for text and files, with URL-safe variant support.

What Is Base64 Encoding?

Base64 converts binary data into plain ASCII text so it can safely travel through email, JSON, URLs, and web forms. OpenPGP ASCII Armor itself uses Base64 under the hood to represent binary keys and encrypted packets.

Important: Encoding Is Not Encryption

Anyone can decode Base64 back to the original text. It provides zero confidentiality. If you need to hide sensitive data, use OnlinePGP.com or PGP File Encryption. Read What Is PGP? and Is Online PGP Safe? for more, or check Hash Generator.

How to Encode or Decode Base64

  1. Enter text or choose a file

    Paste text into the input box, or choose a file to encode. File encoding is limited to 10 MB. Decoding always reads the text in the input box.

  2. Optional URL-safe mode

    Check URL-safe Base64 if the result needs to go in a URL. Encoding then uses - and _ instead of + and /, and drops the = padding.

  3. Encode or decode

    Click ENCODE TO BASE64 or DECODE FROM BASE64. If a file is selected, Encode uses that file instead of the text box.

  4. Copy the result

    The result appears in the output box. Copy it when you need it. Remember that Base64 is not encryption: anyone can decode it.

Frequently Asked Questions

Is Base64 encryption?

No. Base64 is an encoding format, not encryption. Anyone can decode it.

Does this tool support emojis and accents?

Yes. It uses TextEncoder and TextDecoder for full UTF-8 support.

What is URL-safe Base64?

It replaces + and / with - and _ and strips = padding so strings can be used safely in URLs.

Are my files or text sent to a server?

No. Encoding and decoding run 100% locally in your browser.

Related Tools