Map Extract
Free tool

Base64 encoder and decoder

Paste text to turn it into base64, or paste base64 to read what it says. The tool handles UTF-8 properly, so pound signs, accents and emoji survive the round trip, and it can use the URL-safe alphabet with - and _ when the result is going into a web address.

Runs in your browser. Nothing you enter is uploaded.

Example: a value from an API log

A developer connecting a CRM to a quoting tool sees a field in a webhook log that reads QnJpZ2h0d2VsbCBEZW50YWw6IHF1b3RlIMKjMSw0NTA=. Decoding it shows the plain text below, including the £ sign, which tells her the CRM is sending the quote title encoded.

Encoding the same text with URL-safe alphabet ticked gives the same characters without the trailing = padding. For text containing characters that map to + or / in standard base64, such as a?b>c~, the standard result YT9iPmN+ becomes YT9iPmN- in the URL-safe form.

Input
Decode: QnJpZ2h0d2VsbCBEZW50YWw6IHF1b3RlIMKjMSw0NTA=
Result
Brightwell Dental: quote £1,450

Encoding or decoding

  1. Choose the direction

    Encode text to base64 or Decode base64 to text.

  2. Paste the input

    Text to encode, or the base64 string to decode. The box starts with a short sample you can replace.

  3. Tick URL-safe if needed

    Use the URL-safe alphabet when the result goes into a URL, a file name or a token, where + and / cause trouble.

  4. Copy the result

    The output appears as you type. If decoding fails, the message explains that the input is not valid base64 or decodes to binary data, such as an image.

Terms you will meet

Base64
A way of writing any data with an alphabet of 64 printable symbols, upper and lower case letters, digits and two punctuation marks. It makes data about a third larger.
Padding
One or two = signs at the end that make the length a multiple of four. Many decoders accept input without it.
URL-safe base64
The same scheme with - and _ in place of + and /, defined in RFC 4648 for use in URLs and file names.
UTF-8
The text encoding the tool uses before converting to base64, so characters such as £ become the right bytes.

Questions people ask

What is base64 used for?

Carrying binary data or awkward characters through systems built for plain text: email attachments, images inside HTML or CSS, API tokens, basic authentication headers and some webhook payloads. It is an encoding for transport, not a way to keep anything secret.

Why does my base64 not decode to text?

Either the base64 was made from text in an older encoding, such as a Windows code page, or it is not text at all but an image or another file. The tool decodes strictly as UTF-8, so instead of showing garbled characters it tells you the input is invalid or binary. For images, use the base64 to image tool.

What is the difference between base64 and base64url?

Base64url swaps + for - and / for _, and usually drops the = padding, so the result can sit in a URL or file name without escaping. Tick the URL-safe option to produce it. Decoding accepts either form, and missing padding is added back before the text is read.

Does base64 make data bigger?

Yes, by about a third. Every three bytes of input become four characters of output, plus padding. That is why large images embedded as base64 make web pages and emails heavier than linking to the file normally, and why it suits small items best.

Where your data goes

Encoding and decoding happen in the page as you type. The text you paste is not uploaded, logged or kept.

Checked against the tool on

Top