Base64 string encoder/decoder

Convert text to Base64 format and decode Base64 strings back to plain text. This free online tool helps you quickly encode and decode strings using Base64 encoding, with support for URL-safe encoding. Perfect for developers working with data encoding, API requests, and web applications.

Enter your string below to see its base64 representation.
Input
Output

Actions

Frequently Asked Questions

What is Base64 encoding?

Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format by translating it into a radix-64 representation. It's commonly used when there's a need to transmit binary data over media that are designed to deal with text.

What is URL-safe Base64?

URL-safe Base64 is a variation of Base64 that uses different characters for the 62nd and 63rd values. In standard Base64, these are '+' and '/', but in URL-safe Base64, they're replaced with '-' and '_' respectively. This makes the output safe to use in URLs and filenames without additional encoding.

What are common uses for Base64 encoding?

Base64 encoding is used in many applications, including:

  • Embedding images in HTML or CSS files
  • Encoding email attachments (MIME)
  • Storing complex data in XML or JSON
  • Authentication tokens and cookies
  • Safely transmitting binary data in URLs
Is Base64 a form of encryption?

No, Base64 is not encryption and does not provide any security or privacy. It's a simple encoding scheme that anyone can decode. Base64 is used to transform binary data into text that can be easily transmitted, not to keep information secret.