Boneyard Tools

URL Encoder (Percent-Encoding)

Paste text to percent-encode it for use in a URL. Pick component mode to escape every reserved character for a query value, or full URL mode to keep the slashes, query and fragment markers intact.

How to URL encode text

  1. Paste the text or URL you want to encode into the box.
  2. Choose component to escape everything, or full URL to keep the structure.
  3. Copy the encoded result.

Examples

Encode a query value (component)

a b&c
a%20b%26c

Encode a whole URL (full URL)

https://x.com/a b?q=1&r=2
https://x.com/a%20b?q=1&r=2

Frequently asked questions

When should I use component vs full URL encoding?

Use component mode (encodeURIComponent) for a single query value or path segment, since it escapes reserved characters like / ? # & = so they cannot break the URL. Use full URL mode (encodeURI) when you have a complete address and want to keep those structural characters working.

What is percent-encoding?

Percent-encoding replaces a character with a percent sign followed by its byte value in hex, for example a space becomes %20. It lets a URL carry characters that would otherwise be unsafe or have special meaning.

Which characters get encoded?

Letters, digits and the marks - _ . ! ~ * ' ( ) are left as-is. Component mode escapes everything else, including spaces, slashes and ampersands. Full URL mode also escapes spaces and unsafe characters but preserves : / ? # & = + $ , ; @ so the URL stays valid.

Why is a space %20 and not a plus sign?

In the path and most of a URL a space is encoded as %20. The plus sign only means a space inside the older application/x-www-form-urlencoded format used by HTML form bodies, so this tool always outputs %20 to stay correct everywhere.

How are accented letters and emoji handled?

They are encoded as their UTF-8 bytes. For example café becomes caf%C3%A9. This matches how browsers and servers expect non-ASCII text in a URL.

Is my text private?

Yes. Encoding runs entirely in your browser, so nothing you paste is uploaded or stored.

Related tools