Developer Tools

Base64 Encoder

Encode text or upload a file to get its Base64 representation — free, instant, browser-based.

No uploads — browser onlyInstant result

Encode a file instead of text

Text Input

How to encode text to Base64

  1. Paste your text into the input area, or upload a file to encode.
  2. Click Encode to Base64 to generate the encoded string.
  3. Copy the result to your clipboard.

What is Base64?

Base64 is an encoding scheme that converts binary data to a set of 64 ASCII characters. It is commonly used to embed binary data (like images or files) in text-based formats like HTML, CSS, email (MIME), and JSON APIs.

Privacy — your data stays local

Encoding and decoding run entirely in your browser using native Web APIs. No data is sent to any server.

Frequently Asked Questions

Does Base64 encoding encrypt my data?

No. Base64 is encoding, not encryption. Anyone with the Base64 string can decode it back to the original. For encryption, use a proper cryptographic tool.

Why is the encoded output longer than the input?

Base64 encoding increases data size by approximately 33%, because it represents every 3 bytes of input as 4 ASCII characters.

Can I encode binary files like images?

Yes — use the Upload file option to encode any file type to Base64.

What is a data URI?

A data URI embeds Base64-encoded file data directly into HTML or CSS, e.g. src="data:image/png;base64,ABC123...".

Related tools