Convert text to Base64 or decode Base64 back to text. Supports file uploads and image preview. Everything runs in your browser.
Drop a file here or click to upload (encodes to Base64)
Base64 is a binary to text encoding scheme that represents binary data using a set of 64 ASCII characters. It is commonly used to embed images in HTML or CSS, send binary data through text only protocols like email (MIME), store complex data in JSON or XML, and encode authentication credentials in HTTP headers.
Type or paste text on the left side and click "Encode" to get the Base64 representation on the right. Or paste a Base64 string on the right and click "Decode" to see the original text. With auto convert enabled, the tool updates as you type. You can also upload any file to encode it as Base64.
Standard Base64 uses the characters + and / which have special meaning in URLs. URL safe mode replaces + with a minus sign and / with an underscore, and removes padding characters. This is useful when you need to include Base64 data in query parameters or URL paths.
When you decode a Base64 string that represents an image (or upload an image file), the tool automatically detects it and shows a preview. This is handy for debugging data URIs in HTML or CSS, or for inspecting Base64 encoded images in API responses.