LikeApp

🔄 Base64 Encoder/Decoder

Free Base64 encoding & decoding! Convert text to/from Base64, image to Base64. Essential developer tool!

0 chars
0 chars

How to Encode Base64

  1. Enter text or upload an image file
  2. Select encode or decode direction
  3. The result is converted instantly
  4. Copy the result to use in your code

💡 Common Examples

ScenarioInputResult
Encode ASCIIHello, World!SGVsbG8sIFdvcmxkIQ==
Encode Korean라이크앱65287J207YGs7JWx

Everything About Base64 Encoding

Base64 is an encoding scheme that safely converts binary data to text, used extensively in web development. Email attachments (MIME), JWT tokens, API authentication (Basic Auth), embedding images in HTML/CSS (Data URIs), and cookie values all require Base64 encoding.

Base64 works by splitting binary data into 6-bit chunks and mapping them to 64 characters (A-Z, a-z, 0-9, +, /). This converts any binary data into ASCII-safe strings that transmit safely over text-based protocols (HTTP, SMTP, etc.). The tradeoff is approximately 33% size increase over the original.

This tool supports both text-to-Base64 encoding and Base64-to-text decoding. Upload an image file to convert it into a Base64 Data URI ready for use in HTML img tags or CSS background-image properties. Embedding small icons or logos as Base64 reduces HTTP requests and improves page load speed.

Pro tip: When debugging JWT (JSON Web Tokens), Base64-decode the header and payload sections to inspect their contents. For API testing, create Basic Auth headers by Base64-encoding the "username:password" string. Remember that Base64 is encoding, not encryption — never use it for security purposes.

FAQ

What is Base64?
Base64 is an encoding scheme that converts binary data into ASCII strings. It is widely used in email attachments, API communication, and more.
Can I convert images to Base64?
Yes, upload an image file and it will be converted to a Base64 string. You can embed it directly in HTML or CSS.
Is my data sent to a server?
No. All encoding/decoding happens in your browser. No data is sent externally.

Related Tools

Tools You Might Also Like