All tools · Utilities

URL Encode

Encode or decode URL-safe text.

Free to use, no sign-up required. URL Encode is one of 198 tools built into Xenition, alongside a chat that can use them for you.

Encodes text so it is safe to put inside a URL, or decodes percent-encoded text back into readable form. Reach for it when building query strings or reading a link full of %20 and %3D.

How to use URL Encode

  1. Choose encode or decode.
  2. Paste your text into the box.
  3. Read the result below; it updates as you type.
  4. Press the copy button to copy it.

How it works

Encoding uses JavaScript’s encodeURIComponent, which escapes every character except letters, digits and - _ . ! ~ * ' ( ) as UTF-8 bytes in %XX form, so / ? & and = are escaped too. Decoding uses decodeURIComponent; a stray % that is not followed by two hex digits shows “Invalid input”.

Example

Encoding “name=Zoë & co/?page=2” gives name%3DZo%C3%AB%20%26%20co%2F%3Fpage%3D2. The ë becomes two bytes, %C3%AB, and each space becomes %20.

Questions about URL Encode

Should a space be %20 or +?

Both appear. %20 is valid anywhere in a URL, while + means a space only in form-style query strings. This tool writes %20 and leaves + unchanged when decoding.

Why is the whole URL escaped, including the slashes?

encodeURIComponent is meant for one piece, such as a single query value. Encode only the part that goes after = rather than the full address.

What it takes

Use it from chat

You do not have to open URL Encode to use it. Ask Xenition in plain language and it runs the right tool, then carries the answer into whatever you are working on — a document, a spreadsheet, a deck.

Related tools