Base64 Encode/Decode
Encode text to Base64 or decode Base64 back to text with full Unicode support
Input
Output
Related Tools
Frequently Asked Questions
Base64 encodes binary data into ASCII text using 64 printable characters (A-Z, a-z, 0-9, +, /). It's used to embed binary data in text-based formats like JSON, XML, HTML, and email. The encoded output is roughly 33% larger than the input.
Paste your text in the input field and click Encode. The tool converts each character to its UTF-8 bytes and then to Base64 representation. Click Copy to grab the result.
Common uses include: embedding small images in CSS/HTML (data URIs), sending binary data in JSON APIs, encoding file contents for upload, email attachments (MIME), and storing binary data in text-only databases.
Standard Base64 uses + and / characters, which need escaping in URLs. Base64URL replaces these with - and _ and removes padding (=). JWTs use Base64URL encoding because tokens are often passed in URLs.