Skip to content
QuicklyTools

Base64 Encoder

Encode text (UTF-8) or any file to Base64, with URL-safe and MIME line-wrapping options and data-URI output.

Runs in your browser
Loading tool…

About the Base64 Encoder

Base64 represents binary data as plain ASCII text so it can travel through JSON, email, URLs and HTTP headers. Encode text — with full Unicode support — or any file up to 25 MB, optionally as a data URI.

Your data is processed in the browser and never sent to a server, so it is safe to paste payloads that contain tokens or personal data.

How to use it

  1. Choose Text or File.
  2. Enter text or drop a file.
  3. Copy the Base64 output.

Good to know

  • Base64 is an encoding, not encryption: anyone can decode it.
  • Output is about 33% larger than the input.

Frequently asked questions

What is URL-safe Base64?

A variant that uses - and _ instead of + and / and omits padding, so it can appear in URLs and JWTs.

Why does my output differ from another tool?

Most often because of text encoding. This tool encodes text as UTF-8, the web standard.

More developer tools →