Skip to content
TabKiwiTabKiwi

Base64 Encoder

Encode text or any file as Base64, with URL-safe output, line wrapping and data URLs.

DeveloperRuns in your browser. Your files never leave this device.
Loading tool…

About this tool

Type text to see its Base64 form update instantly, or drop a file such as an image, font or PDF to get its Base64 string. Switch to the URL-safe alphabet for tokens and query strings, wrap lines at 76 characters for email and PEM-style output, or produce a complete data: URL you can paste into CSS or an <img> tag. Files are read locally and never uploaded.

How to use Base64 Encoder

  1. Choose the Text or File tab.
  2. Type text, or drop a file onto the box.
  3. Pick the alphabet, padding, wrapping and data URL options you need.
  4. Copy the result or download it as a text file.

Frequently asked questions

Why is Base64 bigger than the original?

Every 3 bytes become 4 characters, so the output is about 33% larger, plus a little more if you wrap lines.

What is URL-safe Base64?

It swaps + and / for - and _, which have no special meaning in URLs and file names. JWTs use this variant without padding.

Is Base64 encryption?

No. Anyone can decode it instantly. It only makes binary data safe to place in text formats such as JSON, HTML or email.

More Developer tools

View all 91 →