Base64 Encoder & Decoder Online

Convert UTF-8 text to Base64 or decode Base64 back to readable text. Choose standard Base64 or the URL-safe Base64URL alphabet; your input is processed locally in this browser.

Supported:

  • Unicode text, including accents, non-Latin scripts, and emoji
  • RFC 4648 standard Base64 and URL-safe Base64URL
  • Unpadded Base64URL input and ASCII whitespace in pasted Base64
  • Local processing with no input upload
Need to send this file? Try FileSendX Share large files with expiry and access controls →

What is Base64?

Base64 is a binary-to-text encoding that represents bytes with 64 printable ASCII characters. It lets binary data travel through text-oriented systems, but it is reversible and provides no encryption or confidentiality. The standard alphabet and its URL-safe variant are defined by RFC 4648.

Quick example: the UTF-8 text Hello encodes to SGVsbG8=. Decoding SGVsbG8= returns Hello.

Standard Base64 versus Base64URL

FormatAlphabet endingPaddingTypical use
Standard Base64+ and /= normally includedEmail, data URLs, text payloads
Base64URL- and _Often omitted when length is knownURLs, filenames, JWT segments

Common uses of Base64 encoding

How to use this Base64 tool

  1. Choose a format: Leave Base64URL off for standard Base64, or enable it for URLs, filenames, and JWT-style values.
  2. Encode: Paste text and select “Encode to Base64.” The tool first converts Unicode text to UTF-8 bytes.
  3. Decode: Paste a Base64 string and select “Decode to text.” The decoded bytes must be valid UTF-8.
  4. Copy Results: Use the "Copy" button to copy the result to your clipboard.
  5. Clear: Reset both fields and the status message.

What this text decoder does not do

This page converts text only. If decoded bytes represent an image, ZIP archive, PDF, or another binary file, they may not be valid UTF-8 and this tool will report an error instead of corrupting them. Use the image encoder to encode an image as a data URL.

Best Practices for Base64 Usage

Technical references: RFC 4648 defines the encodings, while MDN’s Base64 guide documents browser behavior and Unicode handling.