Base64 Encoder & Decoder

Encode text to Base64 or decode it back, live as you type

  • 100% Free
  • Files stay private
  • Works in your browser
Try it now·Base64 Encoder & Decoder
updates live

Fully UTF-8 safe (emoji and accents survive the round-trip) and processed entirely in your browser. Decoding accepts standard and URL-safe Base64, with or without padding.

How it works

  1. Pick Encode or Decode

    Choose Encode to turn plain text into Base64, or Decode to turn Base64 back into text.

  2. Type or paste text

    Type or paste into the Plain text or Base64 input box and the result updates live as you type.

  3. Copy or download it

    The Base64 output or Decoded text appears below. Copy it or press Download for a .txt file; it all runs in your browser.

Encode text to Base64 or decode Base64 back to plain text instantly, with full UTF-8 support and an optional URL-safe variant. Emoji, accents, and symbols survive the round-trip intact.

What is Base64 Encoder & Decoder?

Base64 Encoder & Decoder is a free tool that converts between readable text and the Base64 representation used to carry binary or non-ASCII data safely through text-only channels. Base64 maps every three bytes to four printable characters, making it ideal for embedding data in URLs, JSON, email, cookies, and data URIs. This tool encodes and decodes in both directions and keeps multi-byte characters correct throughout.

Who Benefits from This Tool

  • Developers: inspect or craft Base64 payloads for APIs, JWTs, and configuration files.
  • Web designers: build data URIs for inline images, fonts, and small assets.
  • Email and integration engineers: encode attachments or headers that must stay text-safe.
  • QA testers: quickly decode captured tokens or parameters to check their contents.
  • Students: understand how Base64 encoding works and why output size grows.

Key Features

  • Two modes: switch between Encode and Decode with a single tab.
  • UTF-8 safe: emoji, accented letters, and symbols round-trip without corruption.
  • URL-safe option: encode with - and _ instead of + and /, dropping padding.
  • Forgiving decoder: accepts standard and URL-safe input, with or without padding.
  • Swap button: send a result back through the inverse conversion in one click.
  • Live size stats: see input bytes, output bytes, and the percentage size change.
  • Paste, copy, and download: pull from your clipboard and export the result as a .txt file.

How to Use

  1. Select the Encode tab to convert text to Base64, or the Decode tab to convert Base64 to text.
  2. Type or paste your input, or click Paste to pull from your clipboard.
  3. For encoding, toggle URL-safe if the output will be used in a URL or filename.
  4. Read the live result, then copy it or click Download to save it.
  5. Use Swap to reverse the conversion, or Reset to clear everything.

Common Use Cases

  • Decoding the payload of a JSON Web Token to inspect its claims.
  • Encoding a small image or SVG into a data URI for inline embedding.
  • Preparing Basic Authentication header values from user:password strings.
  • Making a Base64 value safe to place in a URL query parameter.
  • Checking whether a captured cookie or token is Base64-encoded text.

Tips and Best Practices

  • Turn on URL-safe encoding whenever the value travels in a URL, filename, or path segment.
  • Base64 grows data by roughly one third. Watch the size stats when embedding large assets.
  • Decoding accepts missing padding, so you can paste a URL-safe token directly without adding = characters.
  • Remember that Base64 is encoding, not encryption; never rely on it to hide secrets.
  • Use Swap to confirm a value round-trips cleanly back to its original form.

Limitations and Notes

Everything runs entirely in your browser and nothing is uploaded. Encoding routes text through UTF-8 so any code point survives, and decoding folds URL-safe characters back to the standard alphabet before converting. Base64 is a reversible encoding, not a security measure. Anyone can decode it, so it must never be treated as encryption. Invalid input, such as a string with an impossible length or characters outside the Base64 alphabet, will produce a clear error rather than a silent, incorrect result.

FAQs

No. Base64 is an encoding scheme, not encryption. Anyone with the encoded string can decode it, so never use it to protect passwords or sensitive information.

Base64 represents every three bytes with four characters, so output is about 33 percent larger than the original. The tool shows the exact size change so you can plan around it.

URL-safe Base64 replaces + and / with - and _ and omits padding, so the value can appear in URLs and filenames without being escaped or broken.

Yes. Encoding and decoding both pass through UTF-8, so emoji, accents, and other multi-byte characters round-trip without corruption.

Yes. The decoder re-pads automatically and accepts both standard and URL-safe alphabets, so most values pasted from anywhere decode without adjustment.

No. All encoding and decoding happens locally in your browser. Your text never leaves your device.

More Other Tools

Other tools in Other Tools.

All Other Tools