Base64 Encoder & Decoder

Encode and decode text to Base64 format securely in your browser.

Plain Text
Base64 Encoded
💡 Pro tip: PressKto quickly search and navigate between tools

Examples & Use Cases

  • Original:

    A username and password combination that needs to be encoded for HTTP Basic authentication, following the format 'username:password'.

  • Encoded:

    The same credentials encoded in Base64 format, ready to be used in Authorization headers for secure API access and authentication.

Base64 encoding is essential for HTTP Basic authentication and secure credential transmission in web applications.

API Authentication
Encode credentials for Basic HTTP authentication headers.
  • Text Content:

    Plain text content that needs to be embedded directly in HTML or CSS without external file references, useful for inline content.

  • Data URL:

    The same content encoded as a data URL with Base64 encoding, allowing direct embedding in src attributes or CSS properties.

Data URLs with Base64 encoding allow embedding content directly in HTML and CSS without separate file requests.

Data URLs
Create data URLs for embedding content directly in HTML or CSS.
  • Config Data:

    Application configuration with settings, API keys, and parameters that need to be encoded for safe storage in databases or config files.

  • Encoded Config:

    The same configuration data encoded in Base64 format, making it safe to store in text-based systems and preventing formatting issues.

Base64 encoding helps store complex configuration data safely in text-based storage systems.

Configuration Storage
Encode configuration data for safe storage and transmission.
  • Binary Data:

    Binary file content or attachment data that needs to be transmitted through email protocols that only support text content.

  • Email Safe:

    The same binary data encoded in Base64 format, making it safe for email transmission and compatible with MIME standards.

Email systems use Base64 encoding to safely transmit binary attachments through text-based protocols.

Email Attachments
Understand how email attachments are encoded for transmission.

Frequently Asked Questions

You can encode any text including special characters, emojis, and Unicode characters. The tool handles UTF-8 encoding automatically, so all international characters are supported.