What is this tool?
This tool encodes and decodes text or files to/from Base64. It supports Standard, URL-safe, and MIME formats, as well as file-to-Base64 conversion. All processing is done in the browser — no data is sent to any server.
How to Use
- Text mode: Enter text or a Base64 string in the input area for real-time conversion.
- Use direction buttons to switch between encode and decode. 'Auto-detect' selects the direction based on the input.
- File mode: Drag & drop or select a file to convert it to Base64. Image files show a preview and output format options.
- URL-safe (for JWT/URL parameters) and MIME (for email) formats are also supported.
Examples
- Decode a Base64 string from an API response to check its content.
- Decode JWT token parts using URL-safe mode.
- Convert an image file to Base64 for embedding as a Data URI in HTML.
- Encode credentials for HTTP Basic Authentication headers.