Base64 Encode/Decode
Encode text to Base64 or decode Base64 strings instantly. Supports UTF-8 text and file encoding.
DevForge is free and ad-supported. Buy me a coffee if it saved you time.
How to Use This Tool
Enter text in the input field, select Encode or Decode mode, and click the action button. When encoding, your plain text is converted to a Base64 string. When decoding, a Base64 string is converted back to readable text. Supports full UTF-8 text.
Common Use Cases
- Encoding binary data for embedding in JSON or XML payloads
- Decoding Base64 strings from API responses or JWT tokens
- Preparing data URIs for inline images in HTML or CSS
- Debugging encoded strings in configuration files or logs
Frequently Asked Questions
What is Base64 encoding?
Base64 is a binary-to-text encoding scheme that represents binary data using 64 ASCII characters. It is commonly used to embed binary data in text-based formats like JSON, XML, HTML, and email.
Does Base64 encoding encrypt data?
No. Base64 is an encoding, not encryption. Anyone can decode a Base64 string. It should never be used to protect sensitive data.
Why does Base64 increase data size?
Base64 encoding increases data size by approximately 33% because it represents 3 bytes of binary data using 4 ASCII characters.