Ads disabled until consent granted.

Browser tool

Base64 Encode & Decode

Encode or decode Base64 strings with instant previews and copy buttons.

Convert text or binary payloads between raw and Base64 instantly. All processing stays on your device and the share link feature recreates your current inputs and options automatically.

Key points

Encode or decode instantly

Paste text or drop a file, then convert it between raw and Base64 representations with a single click. Unicode content is handled safely.

Control the output format

Toggle URL-safe alphabet, remove padding, and wrap lines at your preferred column so the output matches API or email requirements.

Shareable, client-side workflow

State lives entirely in your browser. Share links encode the pane contents so teammates can reproduce the same conversion.
Active: Raw text

Raw text

Base64 value

Conversion options

Binary files are read client-side and converted to Base64.

Drag & drop files to encode to Base64
Ads disabled until consent granted.

How to use this tool

  1. Step 1

    Add content to convert

    Paste or type text into the Raw pane, or drop a file from your desktop. The tool reads files locally without uploading them.
  2. Step 2

    Choose encoding options

    Switch on URL-safe alphabet, disable padding, or wrap lines before converting so the output fits your target system.
  3. Step 3

    Encode, decode, or share

    Use the action buttons to convert in either direction, copy the active pane, download the result, or share a link with encoded state.

Frequently asked questions

What does the URL-safe toggle change?
URL-safe Base64 swaps '+' for '-' and '/' for '_' so you can embed values in URLs without escaping. It pairs well with the padding toggle when working with web APIs.
Can I convert large files?
The tool comfortably handles files around one megabyte in modern browsers. For very large binaries use a dedicated CLI so you do not exhaust memory.
Why does decoding fail sometimes?
Invalid characters, truncated strings, or missing padding can cause decode errors. Try enabling URL-safe mode or padding to match the source format.

Avoid pasting sensitive production secrets into share links. Base64 is an encoding, not encryption, so treat generated values as readable text.

Base64 Encode & Decode — WebUtility.org | WebUtility.org