🧬

Base64 Encoder/Decoder

Encode and decode Base64 strings with UTF-8 support. Perfect for encoding text, handling API tokens, embedding data URIs, and debugging web applications.

Developer Tools
Loading tool...

How to Use Base64 Encoder/Decoder

What is Base64?

Base64 is an encoding scheme that converts binary data into ASCII text format using 64 printable characters (A-Z, a-z, 0-9, +, /). It's commonly used in web development, APIs, and data transmission.

How to Use This Tool

Encoding Text to Base64

  1. Select Encode mode (default)
  2. Type or paste your text in the Input Text area
  3. Click Convert to encode
  4. Your Base64 string appears in the Output panel
  5. Click Copy Output to copy the encoded result

Decoding Base64 to Text

  1. Click Decode mode
  2. Paste your Base64 string in the Input Base64 area
  3. Click Convert to decode
  4. Your decoded text appears in the Output panel
  5. Click Copy Output to copy the decoded result

Features

  • UTF-8 Safe: Properly handles emoji, international characters, and special symbols
  • Bidirectional: Switch between Encode and Decode modes instantly
  • Error Handling: Clear error messages for invalid Base64 strings
  • Quick Actions: Convert, Swap modes, Copy output, Clear all, or try Sample data
  • Real-time Status: Visual indicators show conversion status (Idle/Success/Error)

Common Use Cases

  • API Authentication: Encode credentials for Basic Auth headers
  • Data URIs: Embed images or files in HTML/CSS using Base64
  • URL-Safe Data: Encode text for transmission in URLs or query parameters
  • Email Attachments: Handle MIME-encoded email content
  • Debugging: Decode Base64 tokens, cookies, or configuration values
  • Web Storage: Store binary data in localStorage or cookies

Tips

  • Base64 encoding increases data size by approximately 33%
  • Always use UTF-8 encoding for text to avoid character corruption
  • Remove whitespace from Base64 strings before decoding
  • Base64 is encoding, not encryption—it doesn't provide security

Frequently Asked Questions

Related Development Tools

Share Your Feedback

Help us improve this tool by sharing your experience

We will only use this to follow up on your feedback