Base64 Encoder / Decoder

Free online Base64 encoder and decoder. Instantly encode text or files to Base64 and decode Base64 strings. Supports URL-safe Base64 and file uploads.

TextBinaryPopular
Input
Ready
Output

Mode: encode — type in the Input panel, then click Encode or Decode.

Frequently Asked Questions

What is Base64 encoding used for?

Base64 is used to encode binary data (images, files) into ASCII text for safe transmission in JSON, HTML, or email. It is also used for Basic Auth headers and data URLs.

Does it support file encoding?

Yes. You can upload a file and encode it to a Base64 data URL, useful for embedding images in CSS or HTML.

Is URL-safe Base64 supported?

Yes. The tool supports standard Base64 (+ and /) and URL-safe Base64 (- and _) encoding variants.