Base64 Encoder

Convert text to Base64 using UTF-8 so accents, emoji and non-Latin scripts encode correctly. You can also drop any file to get its Base64 string or a ready-to-use data: URL for embedding images in CSS or HTML. A URL-safe option produces Base64URL without padding, as used in JWTs and web APIs.

How to use the Base64 Encoder

  1. Choose Text or File.
  2. Type your text, or drop a file up to 10 MB.
  3. Tick URL-safe or line wrapping if you need them.
  4. For files, choose plain Base64 or a data URL.
  5. Copy the output or download it as a text file.

Features

Benefits

Frequently asked questions

Why is the Base64 output larger than my file?

Base64 uses 4 characters for every 3 bytes, so the output is about 33% larger than the input (more with line breaks).

What is the difference between Base64 and Base64URL?

Base64URL replaces + with - and / with _ and usually drops the = padding, so the result can be used in URLs and file names without escaping.

Is Base64 encryption?

No. Base64 is an encoding that anyone can reverse instantly. Never use it to protect passwords or secrets.

Related tools