Skip to content

Base64 Encoder & Decoder

Encode text to Base64 or decode Base64 back to text, with full UTF-8 and Base64URL support.

  • Free, no sign-up
  • Runs in your browser
  • Reviewed Nov 6, 2026

How to use the Base64 Encoder & Decoder

  1. Choose Encode or Decode.
  2. Paste your text or Base64 string.
  3. Copy the output, or use Swap to reverse it.

How it works

Text is converted to UTF-8 bytes with TextEncoder, then encoded with the standard Base64 alphabet (RFC 4648). URL-safe mode replaces + and / with - and _ and drops padding. Decoding accepts both alphabets and missing padding. Runs entirely in your browser. Nothing you paste is uploaded or stored.

Worked examples

Emoji-safe

"héllo 👋" encodes to aMOpbGxvIPCfkYs= and decodes back exactly — unlike naive btoa(), which fails on non-Latin characters.

Limitations and assumptions

  • Decoding binary files (images, PDFs) won't produce readable text; this tool is for text payloads.

Frequently asked questions

Is Base64 encryption?

No. It's an encoding that anyone can reverse. Never use it to hide secrets.

G

Built and reviewed by Guru G

Calculation logic is covered by automated tests against known values. Last reviewed Nov 6, 2026. Found a problem? Let us know — see our editorial policy.