URL encode and decode

Percent-encode text so it is safe in a web address, or decode %20-style text back to normal, as you type.

Your files stay on your device. Nothing is uploaded.

URL encode and decode

Updates as you type

Step 1: Type or paste text

Step 2: Encode or decode

Direction
What you are encoding

A value encodes everything, including / ? & and =. A whole URL keeps those, so the address still works.

Step 3: Result

How to URL encode and decode

  1. Paste text or a URL

    Paste the text to encode, or the encoded text to decode.

  2. Choose the direction

    Encode a single value (a search term, a name) or a whole URL. For decoding, choose whether + means a space.

  3. Copy the result

    The result appears as you type.

About this tool

Value or whole URL?

Encoding a value turns / ? & = and spaces into codes, so the value cannot break the address. Encoding a whole URL keeps those characters, so the address still works and only spaces and special letters are encoded.

Every language

Letters such as é or Urdu text become their UTF-8 codes, for example é becomes %C3%A9, which is what browsers and servers expect.

Plus signs

Web forms send spaces as +. Decoding reads + as a space by default; turn that off for values where + is a real plus sign.

Privacy

This tool runs in your browser, on your own device. Your files and text are not uploaded to our server and we cannot see them. When you close or reload this tab, they are cleared, along with the results.

Frequently asked questions

What does "broken escape" mean?

A % must be followed by two hexadecimal digits, as in %20. A lone % or %G1 cannot be decoded.

What is %20?

The code for a space. Each code is % followed by the character's byte value in hexadecimal.

Is my text uploaded?

No. It runs in your browser, so nothing you type is sent anywhere.

Can I encode Base64 too?