Free online Base64 encoder and decoder. Convert text to and from Base64 format. Supports UTF-8 characters, emojis, and URL-safe variant — all processed in your browser.
Encode to Base64
Decode from Base64
How to Use the Base64 Encoder/Decoder
- Choose Encode to convert text to Base64, or Decode to convert Base64 back to text
- Paste your text or Base64 string into the input field
- Optionally enable URL-safe Base64 for use in URLs and filenames
- Click the action button to process
- Copy the result, or use the Swap button to use the output as new input
What Is Base64?
Base64 is an encoding scheme that converts binary data into ASCII text using 64 characters: A–Z, a–z, 0–9, plus (+), and slash (/). It's commonly used to transmit binary data through text-based systems like email, URLs, or web APIs that don't reliably handle raw binary.
Common Uses for Base64
- Email attachments — MIME encoding wraps binary attachments in Base64
- Embedding images in CSS/HTML — Data URIs use Base64 to inline images
- API authentication — Basic Auth headers encode credentials in Base64
- JSON Web Tokens (JWT) — Each segment is Base64-encoded
- SVG and font embedding — Base64 inlines fonts and SVGs into stylesheets
- Database storage — Storing binary data in text columns
- Webhook payloads — Encoding binary fields for transmission
