Back to tools

Base64

Encode and decode text or files to and from Base64 format instantly

Advertisement
Text13 chars
Base64

What is Base64 Encoding?

Base64 is a binary-to-text encoding scheme that represents binary data as a string of 64 ASCII characters (A-Z, a-z, 0-9, +, /). It is commonly used to transmit binary data over text-based protocols such as HTTP, email (MIME), and JSON. Base64 encoding converts any data — text, images, or files — into a safe, printable string. Decoding reverses the process back to the original data.

Common Use Cases

  • Encode binary files (images, PDFs) into Base64 data URLs for inline embedding in HTML/CSS
  • Encode credentials for HTTP Basic Authentication headers (username:password)
  • Transmit binary data through JSON APIs that only support text
  • Encode email attachments using MIME Base64 content-transfer-encoding

How to Use

  1. 1Paste your text or Base64 string into the input field
  2. 2Select 'Encode' to convert text to Base64, or 'Decode' to convert Base64 back to text
  3. 3Copy the result — the tool processes everything locally in your browser, no data is ever sent to a server