What is this tool?
Base64 is an encoding that represents binary data — like images or files — using only 64 printable ASCII characters. This tool converts text and files to Base64 and back, and supports both the standard variant (+, /) and the URL-safe variant (-, _). It handles emoji, Korean, and newlines without data loss via UTF-8, and every conversion runs inside your own browser.
How to use it
1. Choose the encode or decode direction and the standard or URL-safe variant. 2. Type text or upload a file. 3. The result appears instantly, ready to copy or download as a file. When decoding, paste Base64 (or a data: URI) that encodes an image (PNG, JPEG, GIF, WebP, BMP, ICO, SVG) and the tool detects it automatically and shows a preview right away.
When to use it
Inlining small images, icons, fonts (woff2), or SVG as data: URIs in CSS or HTML to cut requests, inspecting Base64-wrapped data like an email attachment (MIME) or a certificate or key (PEM), carrying a binary such as a PDF inside JSON, XML, or a URL, or building an 'Authorization: Basic' header.
Tips and gotchas
Base64 is not encryption — anyone can reverse it, so never use it to protect passwords or personal data. Encoding to Base64 makes data about 33% larger, so it's not suitable for big files. If the value goes into a URL or a file name, choose the URL-safe variant that uses - and _ instead of + and /.