URL Encoder and Decoder

Percent-encode or decode text for use in web addresses.

About this tool

Web addresses can only contain a limited set of characters. Spaces, accents and symbols such as &, ? and # have special meanings or are not allowed, so they must be written as a percent sign followed by two hexadecimal digits. For example, a space becomes %20. This tool encodes text that way, and decodes it back.

How to use it

Paste text into the box. Press Encode to make it safe to place in a URL, or Decode to turn percent codes back into readable text. If the encoded text is broken, for example a % sign not followed by two valid digits, the tool shows a message.

When to encode

Encode a value when you put it inside a query string, such as a search phrase or a redirect address, so that characters like & and = are not mistaken for the structure of the URL. Do not encode the whole address including the https:// part, or the colon and slashes will be changed and the link will break. Encode only the pieces that hold data.

What gets changed

Letters, digits and the characters - _ . ! ~ * ' ( ) are left alone. Everything else is converted, including spaces, slashes, question marks, hash signs and non-English letters. Non-English characters are first turned into UTF-8 bytes, so one letter can become several percent codes. The word "café" becomes caf%C3%A9.

Spaces: %20 or plus?

In a path, a space is %20. In form data sent from older web forms, a plus sign can also mean a space. This tool uses %20, which is accepted everywhere. When decoding, a plus sign is left as it is.

Troubleshooting links

If a link shows odd codes, decode it to see the real text. If a link with spaces or symbols does not work in an email or message, encode the data part and try again. Encoding twice is a common bug that produces %2520 instead of %20.

Privacy

Everything happens in your browser. Nothing you type is sent to us or stored.

Frequently asked questions

Is the url encoder and decoder free to use?

Yes. The url encoder and decoder on QuickKit is free, needs no signup and has no usage limit.

Is my data safe when I use the url encoder and decoder?

Yes. The url encoder and decoder runs in your browser. What you enter is processed on your device and is not uploaded to a server.

Does the url encoder and decoder work on a phone?

Yes. The page is built to work on phones, tablets and desktop browsers without installing anything.

More free tools