Skip to main content

Base64 Encoder & Decoder

Encoders & Decoders100% Client-Side

Encode and decode plain text and files to/from Base64 with UTF-8 and URL-safe support.

Plain Text Input23 chars
Base64 Result
0 chars
SponsorNon-intrusive

What is Base64 Encoder & Decoder?

Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format. This tool supports full UTF-8 encoding (including emojis and Vietnamese characters), standard Base64, and URL-safe Base64 (replacing + with - and / with _).

How to Use Online

  1. 1
    Select Operation ModeChoose Encode to convert text into Base64, or Decode to convert Base64 back to plain text.
  2. 2
    Input Text or DataPaste your UTF-8 text, credentials, or token string into the input editor.
  3. 3
    Toggle URL-Safe ModeOptionally toggle URL-Safe Base64 encoding to replace + and / with URL-friendly characters.
  4. 4
    Copy or Download OutputCopy the converted Base64 output instantly with 1-click or check character counts.

Key Features

  • Live bidirectional Encode and Decode modes
  • Full UTF-8 Unicode character support without encoding corruption
  • URL-safe Base64 mode (RFC 4648 §5)
  • Character and byte size counter for input and output
  • Quick swap input/output button

Common Use Cases

  • Encoding Basic Auth credentials for HTTP headers
  • Embedding small icons/images directly into CSS or HTML
  • Decoding API tokens and encoded query parameters

Frequently Asked Questions

No! Base64 is an encoding scheme, not encryption. Anyone can decode Base64 back to original plain text. Do not use it alone to store passwords or confidential secrets.