Skip to content
APK Peer

Base64 Encoder & Decoder

Free · runs in your browser · nothing uploaded

Quick answer

This Base64 tool encodes text into Base64 and decodes Base64 back into readable text, with full UTF-8 support so emoji and non-English characters survive the round trip. A URL-safe option replaces + and / for use in links and tokens. It runs in your browser, so keys and tokens are never sent anywhere.

0 characters

How to encode or decode Base64

  1. Choose Encode to turn text into Base64, or Decode to turn Base64 back into text.
  2. Paste your text into the Input box.
  3. For encoding, tick URL-safe if the result will go into a link, file name or token.
  4. Copy the result.

What Base64 is for

Base64 turns any data into a limited set of 64 safe characters: A–Z, a–z, 0–9, + and /. That lets binary data and special characters travel through systems built only for plain text, such as:

  • Email attachments, which are sent as Base64 inside the message.
  • Data URLs, which embed images directly in HTML or CSS (see the image to Base64 tool).
  • API tokens and credentials, for example the "Basic" HTTP authentication header.
  • Configuration files that need to hold binary keys or certificates.

Base64 makes data about 33% larger, because every 3 bytes become 4 characters.

Base64 is not encryption

Anyone can decode Base64 instantly; there's no key or secret. Never use it to hide passwords or private data. If you see credentials encoded in Base64 in a file or URL, treat them as if they were in plain text.

Standard vs URL-safe

StandardURL-safe
Characters 62 and 63+ and /- and _
Padding= at the endUsually removed
Used inEmail, data URLs, most APIsURLs, file names, JWT tokens

The decoder accepts both forms, with or without padding, and ignores spaces and line breaks.

Text with emoji and other languages

Many simple Base64 tools fail on characters outside basic English. This one encodes text as UTF-8 first, so Arabic, Urdu, Chinese, emoji and accented letters encode and decode correctly.

Everything happens in your browser, so tokens and keys you paste are never sent anywhere.

Frequently asked questions

Is Base64 encryption?

No. Base64 is an encoding, not encryption: anyone can decode it instantly without a key. It's designed to carry binary data through systems that only handle text, not to hide information.

What is URL-safe Base64?

Standard Base64 uses + and /, which have special meanings in web addresses, and = for padding. URL-safe Base64 swaps them for - and _ and drops the padding, so the result can sit in URLs and filenames. Tokens like JWTs use it.

Why does decoding fail?

The text may not be Base64, may be missing characters, or may decode to binary data such as an image rather than text. This tool decodes text only; use the image to Base64 tool for images.

Last updated by the APKPeer Editorial Team. Read our privacy policy for how the site handles data.