URL Encoder

Encode or decode text for query parameters or full URLs

Read only

URL Encoding Quick Reference

(Space)%20 or +
/ (Slash)%2F
: (Colon)%3A
? (Question)%3F
& (Ampersand)%26
= (Equals)%3D
# (Hash)%23
% (Percent)%25
+ (Plus)%2B
@ (At)%40
" (Double quote)%22

In encodeURI mode, reserved characters such as : / ? # stay unencoded.

What is the URL Encoder Tool?#

The URL Encoder Tool converts text into percent-encoded form for use in URLs, and turns percent-encoded text back into readable form. Switch between Encode and Decode to go in either direction.

Percent-encoding replaces characters with special meaning in URLs with a % and two hex digits, such as %20 for a space. Encoded text only uses safe characters, so it can be embedded in a URL without breaking it.

How to Use#

  1. Choose Encode or Decode.
  2. Open the Options panel to pick the encoding convention, space handling, or per-line conversion.
  3. Type or paste the text. The result updates as you type, ready to copy from the output box.

Encoding Convention#

Two conventions are available, matching JavaScript's standard encodeURIComponent and encodeURI functions.

  • encodeURIComponent: encodes every character except letters, digits, and -_.!~*'(). Recommended for query parameter values and other text embedded in a URL.
  • encodeURI: keeps the characters that structure a URL, such as ;,/?:@&=+$#, alongside letters and digits. Best for encoding a whole URL or path.

Decoding offers the same two conventions. With encodeURI, encoded reserved characters like %3A are left as they are. With encodeURIComponent everything is decoded.

Space and Line Handling#

  • Space encoding (encode only): choose %20 (Standard) for standard percent notation, or + (Plus) for query strings and form submissions.
  • Plus sign handling (decode only): turn on Restore + as spaces to convert + to a space when decoding. %20 always decodes to a space.
  • Convert each line separately: converts each line independently while keeping line breaks (\n) and carriage returns (\r). Lines that fail stay as they are, and a note appears under the input.

Common Use Cases#

  • Build a query parameter value that contains spaces or special characters without breaking the URL.
  • Decode a percent-encoded string from a link, log, or cookie to see the original text.
  • Prepare text to embed in a URL or a link in code, where raw special characters would cause problems.

Frequently Asked Questions#

  • Encoder
  • Decoder

Last updated:

Related tools