Home›Developer Tools›Base64 Encode / Decode Online

Base64 Encoder / Decoder

Text to Base64 and back — Unicode-safe, with the URL-safe variant used in JWTs.

Also searched as: base64 decode · base64 to text · base64 converter

Base64 encode and decode text

Base64 turns any bytes into 64 safe characters so they can travel inside JSON, URLs, email (MIME), HTTP Basic auth headers and JWT tokens. This tool handles Unicode correctly (Hindi, emoji and other UTF-8 text), supports the URL-safe alphabet used in JWTs, and pads or tolerates missing = when decoding.

Examples

For images use image to Base64 / Base64 to image.

Frequently asked questions

Is Base64 encryption?

No. It is an encoding anyone can reverse. Never use it to hide passwords.

Why is the output longer than the input?

Base64 uses 4 characters for every 3 bytes, so output is about 33% larger.

Why does decoding show garbage?

The input was not Base64, is incomplete, or is binary data (an image or file) rather than text. Use the Base64-to-image tool for pictures.

More free tools

JSON Formatter & ValidatorBeautify, minify and validate JSONDeveloper ToolsXML FormatterPretty-print and validate XMLDeveloper ToolsURL Encode / DecodePercent-encode or decode any URL or query stringDeveloper ToolsHEX to RGB ConverterHEX ↔ RGB ↔ HSL with a live colour previewDeveloper ToolsRegex TesterTest JavaScript regular expressions with live matchesDeveloper ToolsWord to HTML ConverterPaste from Word or Docs, get clean HTMLDeveloper Tools