Skip to content
KitWren
Website

Base64 Encoder

Encode text or files to Base64 (standard or URL-safe), including data URLs for images.

  1. Paste your input
  2. Choose the options
  3. Copy the output
Runs in your browser. Your data and files never leave your device.

About the Base64 Encoder

Encode UTF-8 text or any file as Base64. Images produce a ready-to-use data URL for HTML and CSS.

How does the Base64 Encoder work?

Base64 turns any bytes into 64 safe characters (A–Z, a–z, 0–9, + and /). Every 3 bytes become 4 characters, so encoded data is about 33% larger. Text is first converted to UTF-8 bytes, so accented letters and emoji encode correctly. The URL-safe variant swaps + and / for - and _ so the result can go in URLs and filenames.

Example

Hello, world! encodes to SGVsbG8sIHdvcmxkIQ==. The == at the end is padding, added because 13 bytes isn’t a multiple of 3.

Frequently asked questions

Is Base64 encryption?

No. It’s an encoding anyone can reverse — never use it to hide secrets.

Why is my Base64 string longer than the original?

Base64 uses 4 characters for every 3 bytes, so it’s about a third larger.

What is a data URL?

A string like data:image/png;base64,… that embeds a small file directly in HTML or CSS, avoiding a separate request. It’s best for tiny images and icons.