A little help for everyday work.
Free to useFind a tool
Developer tools

Base64 Encoder & Decoder

Encode and decode Base64 for text and files, with UTF-8 and URL-safe support. Provide mode, text or Base64, alphabet and line breaks and the tool shows the result immediately.

⌑ Runs in your browserNo sign-up needed
01

Your inputs

Your inputs and files stay on your device.

02

Your result

◎

A little input. A useful answer.

Enter your values and run the tool to see your result here.

What the Base64 Encoder & Decoder does

Encode and decode Base64 for text and files, with UTF-8 and URL-safe support. This developer tool runs entirely in your browser. You provide mode, text or Base64, alphabet and line breaks.

What you get with each result

UTF-8 safe text encoding, standard or URL-safe alphabets, optional MIME line wrapping, file to data URI, and decoding that previews images and offers other files as downloads.

The formula behind it

Text is converted to UTF-8 bytes and those bytes are written in Base64, so accents, emoji and non-Latin scripts survive a round trip. Decoding accepts line breaks, URL-safe characters and missing padding, and offers images and other files for download instead of showing garbage when the data is binary.

How to use it

  1. Set Mode.
  2. Set Text or Base64.
  3. Choose your file with File (for “Encode a file”).
  4. Set Alphabet.
  5. Set Line breaks.
  6. Press Convert.
  7. Review the result panel, then use Copy result, Print or Download as needed.

Inputs and options

  • Mode: choose Encode text to Base64, Decode Base64 to text or file or Encode a file (Base64 and data URI).
  • Text or Base64: enter text. Example: Hello, world.
  • File (for “Encode a file”): choose a file from your device (*/*); it is read in your browser and is not uploaded.
  • Alphabet: choose Standard (+ /) or URL-safe (- _).
  • Line breaks: choose None or Every 76 characters (MIME).

Every option explained

Mode offers 3 choices: Encode text to Base64, Decode Base64 to text or file and Encode a file (Base64 and data URI). The first entry is the default.

Tips for reliable results

  • Paste large blocks of text directly; line breaks are preserved and nothing is trimmed unless the tool says so.
  • Files are read straight from your device. Very large files depend on your device’s memory, so for big inputs close other heavy tabs first.
  • The result is recalculated each time you press the button, so change one field at a time to see how it affects the outcome.

Frequently asked questions

What is URL-safe Base64?

It swaps + and / for - and _ and drops the = padding, so the result can sit safely in a URL or filename.

Is Base64 a form of encryption?

No. Anyone can decode it. It only makes binary data safe to carry as text.

What does the Base64 Encoder & Decoder return?

It shows the processed output in the result panel, which you can copy, print or download.

Does this tool upload my data?

No. Files are read and processed in your browser, so nothing is sent to a server.

Something not working as expected? Report a problem with Base64 Encoder & Decoder with a sample input and the result you expected.

A few useful next steps.

More developer tools →