ScaleWhite Tools

Base64 Encode / Decode

Encode and decode Base64 strings and convert files.

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

  1. Text mode: Enter text or a Base64 string in the input area for real-time conversion.
  2. Use direction buttons to switch between encode and decode. 'Auto-detect' selects the direction based on the input.
  3. File mode: Drag & drop or select a file to convert it to Base64. Image files show a preview and output format options.
  4. 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.