Skip to content

Free URL Encoder and Decoder

Percent-encode a parameter value or a whole URL, or decode an encoded URL back to readable text.

  • 100% free
  • Runs in your browser
  • Instant results
Quick answer

URL encoding, also called percent-encoding, replaces characters that are not allowed or have a special meaning in a URL with a percent sign and two hex digits, for example a space becomes %20. This tool encodes a single value or a whole URL and decodes encoded text, using UTF-8 throughout.

How to use the URL Encode and Decode

  1. Choose a modeEncode a single value, encode a whole URL, or decode.
  2. Paste your textType or paste the text or URL. The result updates as you type.
  3. Copy the resultTick the plus option if you need form-style spaces, then copy the output.

How URL encoding works

A URL may only contain a limited set of ASCII characters, and some of them, such as ?, &, =, / and #, separate its parts. To put any other character into a URL, or to use a reserved character as plain data, it is written as % followed by the hexadecimal value of each of its UTF-8 bytes. A space becomes %20, & becomes %26 and é becomes %C3%A9.

The most common mistake is encoding with the wrong scope, which is why this URL encode and decode tool has two encoding modes:

  • Encode a value escapes everything except letters, digits and - _ . ~. Use it for one query parameter value, one path segment or a form field. An & inside the value can then never be mistaken for a parameter separator.
  • Encode a whole URL leaves the structural characters : / ? # & = alone and only fixes spaces and non-ASCII characters. Existing %XX sequences are kept, so a URL is not double-encoded.

Decoding, plus signs and broken input

Decoding reverses the process: each %XX sequence is turned back into a byte and the bytes are read as UTF-8.

Plus signs need care. In HTML form submissions (application/x-www-form-urlencoded) a space is sent as +, but in a URL path a plus is just a plus. Tick "Use + for spaces" when you are working with form data or query strings produced by a form; leave it off otherwise.

Real-world input is often damaged, so the decoder is tolerant. A lone % (as in "100% cotton") or a sequence that is not valid UTF-8 is left exactly as typed, the rest is decoded, and a note tells you how many sequences could not be decoded.

Everything runs in your browser. To split a full URL into its parameters, use the query string parser, and to build tracking links try the UTM builder.

Frequently asked questions

How do I URL encode a string?

Choose "Encode a value", paste the text and copy the result. Spaces become %20 and reserved characters such as &, = and / are escaped so the text is safe as a parameter value.

What is the difference between encoding a value and a whole URL?

Encoding a value escapes every reserved character, including / ? & and =. Encoding a whole URL keeps those characters because they give the URL its structure, and only escapes spaces and non-ASCII characters.

Should a space be %20 or +?

%20 is always correct in a URL. The plus sign means a space only in form-encoded data, which includes most query strings generated by HTML forms. In a path, + is a literal plus.

Why does decoding fail on some strings?

A percent sign must be followed by two hex digits, and the bytes must form valid UTF-8. This tool leaves broken sequences as they are and decodes everything else.

Is the text I paste sent anywhere?

No. Encoding and decoding run in your browser and nothing is uploaded.

Last updated 24 November 2026 by the TheTechFolk team.