Base64 Encoder and Decoder

Guide & FAQ
or encode any file (image, PDF, zip...)

Conversion happens in your browser tab. Base64 is an encoding, not encryption: anyone can decode it.

Guide: Base64 Encoder and Decoder

Encode text or a file

Stay on Encode, type or paste text, or choose a file. The Base64 appears immediately. Tick URL-safe for - and _ instead of + and /, and Remove padding to drop the trailing = signs.

Decode Base64

Switch to Decode and paste Base64. Standard and URL-safe input both work, line breaks and spaces are ignored, and a leading data:...;base64, prefix is removed automatically. If the data is text it is shown, otherwise you can download it as a file.

When Base64 is used

  • Embedding small images in HTML or CSS as data URIs.
  • Sending binary data in JSON or XML.
  • Basic authentication headers and JWT tokens.
  • Email attachments (MIME).

Good to know

Base64 makes data about one third larger. It is an encoding, not encryption, so never rely on it to hide a password or a secret. Conversion runs in your browser tab and the tool itself does not send your text or files anywhere.

FAQ

What is Base64?

Base64 is a way of writing binary data using only 64 safe text characters (A-Z, a-z, 0-9, + and /). It is used to put images, files and binary values inside text formats such as JSON, HTML, CSS, email and URLs.

Is Base64 encryption?

No. Anyone can decode it instantly. It hides nothing, so never use it to protect passwords or secrets.

What is URL-safe Base64?

Standard Base64 uses + and /, which have special meaning in URLs. The URL-safe variant uses - and _ instead and often drops the = padding. It is used in JWTs and many web APIs. This tool can create it and can decode both forms.

Does it handle non-English text and emoji?

Yes. Text is converted to UTF-8 bytes before encoding, so accents, Chinese, Vietnamese, Arabic and emoji round-trip correctly.

Can I encode an image or other file?

Yes. Choose a file and its Base64 appears. Tick the data URI option to get a ready-to-paste data:image/png;base64,... string. In decode mode you can download decoded binary data as a file.