Base64 Encoder/Decoder

Encode text to Base64 or decode it back, with UTF-8 and URL-safe support.

How to Use Base64 Encoder/Decoder

  1. Choose Encode Text to Base64 or Decode Base64 to Text.
  2. Paste your input. The result appears as you type.
  3. Tick URL-Safe if you need - and _ instead of + and /.
  4. Copy the output, or Swap to reverse it.

What Base64 is for

Base64 turns any data into 64 safe characters (A to Z, a to z, 0 to 9, + and /) so it can travel through systems that only handle plain text, like email or JSON. It makes data about a third bigger. Text is encoded as UTF-8 first, so emoji and non-English characters survive the round trip.

URL-safe Base64 swaps + and / for - and _ and drops the = padding, which is what JWTs and many web APIs use. When decoding, you can paste a full data URI such as data:image/png;base64,... and the prefix is ignored.

Base64 is not encryption

Anyone can decode Base64 in seconds, so never use it to hide passwords or secrets. It's an encoding, like writing in a different alphabet, not a lock.

Key Features & Practical Use Cases

  • Decoding a Base64 string from an API, email header or config file.
  • Encoding text for a data URI, HTTP header or JSON field.
  • Checking the payload part of a token or encoded message.
  • Making URL-safe Base64 for use in links or file names.

Frequently Asked Questions

Is Base64 encryption?

No. It's an encoding that anyone can reverse. Don't use it to protect sensitive data.

Why does decoding show strange characters?

The Base64 probably holds binary data such as an image or file, not text. This tool shows decoded data as text.

What is URL-safe Base64?

A variant using - and _ instead of + and /, without = padding, so it can go in URLs and file names.

Is my data uploaded?

No. Encoding and decoding happen in your browser.

About OneClickly

OneClickly is a set of 119 free tools for PDFs, images, text, everyday math and code. They run in your browser, so the files and text you work with stay on your device.

Related Tools

  • URL Encoder/Decoder - Encode special characters in URLs (percent-encoding) or decode them.
  • HTML Encoder/Decoder - Escape special characters as HTML entities, or decode entities back to plain text.
  • JWT Decoder - Read the header, payload and expiry of a JSON Web Token in your browser.
  • Hash Generator - Get MD5, SHA-1, SHA-256 and SHA-512 hashes of any text as you type.
  • Bcrypt Hash Generator - Create bcrypt password hashes and check a password against an existing hash.
  • JWT Generator - Create HS256 signed JSON Web Tokens for testing, with your own payload and secret.