Skip to content
ToolsMastar

Encode Text to Base64

Encode text (UTF-8) or any file into Base64, with an optional URL-safe alphabet.

Input:
Any file
Output:
TXT
Max size:
50 MB
Runs:
In your browser (no upload)

What the Base64 Encoder does

Convert text to Base64 with full UTF-8 support, for use in data URIs, HTTP headers, JSON payloads or configuration files.

Options

  • URL-safe alphabet (- and _, without padding) for URLs and tokens.
  • Wrap lines at 76 characters (MIME).

How to use the Base64 Encoder

  1. 1

    Drag a file into the upload area, or click it to choose a file from your device.

  2. 2

    Adjust the options to suit your needs — the defaults work well for most files.

  3. 3

    Click “Run Base64 Encoder” to start processing.

  4. 4

    Preview the result, then download it. Batch results can be downloaded together as a ZIP.

Frequently asked questions