Base64

Base64 / Base32 / Base58

Encode and decode Base64, Base32 (RFC 4648), Base58 (Bitcoin alphabet), and Base85/Ascii85; convert JSON, XML, YAML, CSV, and other formats to and from Base64; encode/decode Quoted-Printable (MIME).

URL-safe

Base64 / Base32 / Base58

Encode and decode Base64, Base32 (RFC 4648), Base58 (Bitcoin alphabet), and Base85/Ascii85; convert JSON, XML, YAML, CSV, and other formats to and from Base64; encode/decode Quoted-Printable (MIME).

Common uses

  • Encode an image for a data: URI
  • Decode a JWT payload to readable JSON
  • Encode a JSON payload as Base64
  • Convert text to Base32
  • Encode binary data as Ascii85 for a PostScript file
  • Decode a Quoted-Printable MIME email body

Also searched as

  • base64 encode decode online
  • convert file to base64
  • image to base64 data uri
  • base64 to image online
  • pdf to base64
  • url safe base64
  • base32 encoder decoder
  • base58 encode decode
  • ascii85 base85 encode decode
  • quoted printable decode online
  • json to base64
  • decode base64 to text

Frequently asked questions

How do I encode text to Base64?

Type or paste your text in the input and the Base64 output updates instantly. Switch the mode to decode Base64 back to plain text.

Is it safe to encode sensitive data here?

Yes — encoding and decoding happen entirely in your browser. Nothing is ever sent to a server.

Does it support URL-safe Base64?

Yes. Toggle the URL-safe option to use the -_ alphabet without padding, suitable for query strings and JWTs.

How do I convert a file or image to Base64?

Use the Data URI tab, or the Base64 tab, to load a file and get its Base64 string or a data: URI. This is useful for embedding small images in HTML or CSS.

What is the difference between Base64 and Base32 or Base58?

They are different alphabets for turning bytes into text. Base32 follows RFC 4648, Base58 uses the Bitcoin alphabet, and Base85 is the Ascii85 variant. All four are available here as separate tabs.

Can I get URL-safe Base64?

Yes, the tool supports URL-safe Base64 variants for use in URLs and tokens.

How do I decode a Quoted-Printable email body?

Use the Quoted-Printable tab to decode MIME Quoted-Printable text, or encode it.

Can I Base64 encode JSON, XML or YAML directly?

Yes, the Format ↔ B64 tab converts formats such as JSON, XML, YAML and CSV to and from Base64.

Is my data uploaded to a server?

No. This tool runs entirely in your browser — your input is processed locally on your device and is never uploaded or stored on a server.