Skip to content

Base64 Encoder & Decoder

Quickly transform strings or images to and from Base64 encoding.

Text to Encode

Base64 Output

About the Base64 Converter

Convert text to Base64 and back, with full UTF-8 support so emoji and non-Latin characters survive the round trip. URL-safe Base64 is handled too.

How to use it

  1. Type or paste text, or drop or choose a file, to encode it; press Swap to decode Base64 instead.
  2. Decoded data is shown as formatted JSON, text, an image preview or a hex dump, depending on what it is.
  3. Use Options for URL-safe output, padding, line wrapping or a data URI, then copy or download the result.

Frequently asked questions

Is Base64 encryption?

No. Base64 is an encoding, not encryption. Anyone can decode it, so never use it to protect secrets.

What is URL-safe Base64?

A variant that uses - and _ instead of + and /, and often drops = padding, so it can be used in URLs. Both forms can be decoded here.

Related tools