Skip to content
Text Mechanic
Encoding

URL Encode

Percent-encode text for safe use in a URL.

Replaces characters that have a special meaning in a URL — spaces, &, ?, # and anything non-ASCII — with a % followed by their UTF-8 byte values. Encoding a component escapes / and ? as well, which is what you want for one query value; encoding a whole URI leaves the structural characters intact.

Options

A component escapes / and ?; a whole URI leaves them intact.

Off treats the whole input as one value.

InputText is processed entirely in your browser.
0lines0words0characters0 B
Output
0lines0words0characters0 B

Options explained

  • Encode asA component escapes / and ?; a whole URI leaves them intact.
  • Process each line separatelyOff treats the whole input as one value.