Free tool
Base64 & URL Encoder-Decoder
Encode or decode text as Base64 or URL-safe percent-encoding - switch modes any time, with clear errors if something's not valid.
Base64 & URL Encoder-Decoder
Input
Output
How to encode or decode text
- Choose Base64 or URL.
- Type or paste your text into the input box.
- Press Encode or Decode.
- Copy the output. If the input can't be decoded, you'll see a clear error instead of broken text.
Base64
Base64 turns text into a string made only of letters, numbers, plus signs and slashes, so it can pass safely through systems that only handle plain characters. You'll meet it in email attachments, login details sent in HTTP headers, data embedded in web pages and configuration files. Text is handled as UTF-8, so accented letters and emoji survive the round trip.
Base64 is encoding, not encryption. Anyone can decode it, so never use it to hide a password or anything private.
URL encoding
Web addresses can only contain certain characters. URL encoding, also called percent-encoding, swaps spaces, ampersands, question marks, accented letters and other special characters for codes such as %20 for a space, so text can sit safely inside a link or a query string. It is what you need when adding a search term, an email subject or a tracking value to a URL.
Decoding reverses it, which is useful for reading a long link full of % signs and working out where it really goes.