# URL encode and decode

Paste text to percent-encode it for a URL or a query value, or paste %XX codes to decode them. The direction follows what you paste; + can read as a space. Nothing is uploaded.

Page: https://toolkitnow.org/tools/url-encoder/

Type text to encode it, or paste %XX codes to decode them. The direction follows what you paste; the gray text is an example.

## Good to know

### Which way

Text with %XX codes (such as `%20`) and no plain spaces is decoded; anything else is encoded, including `100% sure`. If the guess is wrong, use Decode instead or Encode instead.

### A value or a whole URL

By default the text is encoded as one value, for a query parameter or a path segment: `&`, `=`, `/` and `?` are encoded too, exactly as JavaScript's `encodeURIComponent` does. To fix a whole URL with spaces or accents in it, choose “keep a URL's structure” under Options; %XX codes already in it are left alone.

### UTF-8

Every character is encoded as its UTF-8 bytes: `é` is `%C3%A9`, `🙂` is `%F0%9F%99%82`. When decoding, codes that are not UTF-8 (often text saved as Latin-1, where `é` is `%E9`) are pointed out instead of turning into garbage.

### Plus signs

In query strings and form data a `+` means a space, so it is decoded as one; a real plus is written `%2B`. In a path, + is just a plus: turn the option off.

### Encoded twice

If the decoded text still has %XX codes (`%2520` decodes to `%20`), it was probably encoded twice; decode the result again.

### Open from a link

`?input=…` (itself URL-encoded) opens the page with that text, encoded or decoded as above.

Runs in the browser; nothing is uploaded. Part of toolkitnow.org.
