Base64 Encoder/Decoder

Encode text/files to Base64 or decode Base64 back to text/files. Free, instant, 100% private — all processing happens in your browser.

Or upload a file:
📁 Drop file here or

About Base64 Encoding

Base64 encoding converts binary data into ASCII text using 64 characters (A-Z, a-z, 0-9, +, /). It's used everywhere:

  • Data URIs: Embed images directly in HTML/CSS
  • Email attachments (MIME): Encode binary for text-based email
  • API authentication: Base64 encode credentials for Basic Auth
  • JSON/XML: Safely embed binary data in text formats
  • JWTs: Tokens use Base64URL encoding

🔒 All processing happens in your browser. Your data never leaves your device.

About Base64 Encoder/Decoder

Encode text or files to Base64, and decode Base64 back to text. Essential developer tool for data URIs, API authentication headers, email attachments, and binary-to-text conversion. All processing in your browser.

Encode & Decode

Two-way conversion. Encode any text to Base64, or decode Base64 strings back to readable text instantly.

File Support

Encode files to Base64 data URIs. Perfect for embedding images inline in HTML, CSS, or JSON payloads.

Character Set Safe

Handles Unicode and special characters correctly. UTF-8 safe encoding for international text.

100% Private

All encoding/decoding runs locally in your browser. No data sent to any server — completely secure.

📋 Common Use Cases

Embedding Images in HTML or CSS

Encode a small image to Base64 and inline it directly in a web page to reduce HTTP requests and speed up load times.

Transmitting Data in URLs

Encode binary or special-character data into safe Base64 strings for passing through URL parameters or API calls.

Debugging Authentication Tokens

Decode Base64-encoded credentials or tokens during development to inspect their contents without using external services.

Storing Binary in Text Formats

Encode binary payloads as Base64 strings for storage in JSON, YAML, or database text fields that don't support raw bytes.

🪜 How to Use This Tool

  1. Choose direction
    Select Encode to convert text or binary to Base64, or Decode to turn a Base64 string back into its original form.
  2. Input your data
    Type or paste text into the input area, or upload a file for encoding into Base64 format.
  3. Watch the live preview
    See the encoded or decoded result update instantly as you type, with character-encoding feedback.
  4. Copy or download
    Copy the result to your clipboard or download it as a file when working with binary source data.

📚 Related Guides

Frequently Asked Questions

Are these dev tools free?
Yes. All dev tools are completely free. No signup, no account.
Is my data sent to a server?
No. Base64 encoding, URL encoding, JWT decoding, hash generation, and regex testing all happen in your browser. Your tokens and secrets stay on your device.
Can I decode JWTs safely?
Yes. JWT decoding happens entirely in your browser. The token never leaves your device. Only the header and payload are decoded — signatures are not verified server-side.

🔗 Related Tools

HTML Entity Encoder API Tester JSON Validator Curl Builder