Base64 Encoder

Base64 represents binary data or text with 64 printable ASCII characters so it can travel safely in URLs, JSON, email and data URIs. This free Base64 encoder and decoder converts text as you type with full UTF-8 support, handles URL-safe Base64URL, encodes files up to 10 MB and lets you download decoded binary data as a file.

Free, no signup. Runs entirely in your browser; files and text are not uploaded.

How to use the Base64 Encoder

  1. Choose Encode to Base64 or Decode from Base64.
  2. Type or paste your text, or click Encode a file to convert a file.
  3. Tick URL-safe output if the result will go in a URL or JWT.
  4. Copy the result, or click Swap to reverse the conversion.
  5. When decoding binary data, click Download decoded file to save it.

Features

  • Converts in real time as you type
  • Correct UTF-8 handling for accents, non-Latin scripts and emoji
  • URL-safe Base64URL output without padding
  • Decodes standard or URL-safe input and ignores whitespace and missing padding
  • Encodes any file up to 10 MB, optionally as a data URI
  • Downloads decoded binary data as a file
  • Clear error messages for invalid characters or length

Frequently asked questions

Why does my Base64 decode to garbled text?

The data was probably encoded from a different character set, or it is binary such as an image or PDF. This tool decodes text as UTF-8; if the bytes are not valid UTF-8 it says so and lets you download them as a file.

What is URL-safe Base64?

Base64URL replaces + with - and / with _ and usually drops the = padding, so the value can be used in URLs, file names and JWTs without escaping. The decoder accepts both forms.

Is Base64 a form of encryption?

No. Base64 is an encoding, not encryption. Anyone can decode it, so never use it to hide passwords or secrets.

Why is Base64 output bigger than the input?

Base64 turns every 3 bytes into 4 characters, so the encoded result is about 33% larger than the original data.

Related tools

  • URL Encoder – Percent-encode or decode URLs and query strings, with form (+) and component modes
  • JWT Decoder – Decode JWT header, payload and claims with expiry status – signatures are not verified
  • Hash Generator – Generate MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes of text or files and verify checksums
  • JSON Formatter – Beautify, minify and validate JSON with error line numbers, key sorting and auto-fix

Built and reviewed by Naqash Thaheem, Technical Project Manager. Last reviewed 2026-09-24.