Developer ToolsA little help for every day

Search by name or task, such as JSON or percentage.

Developer Tools

URL Encoder and Decoder

Percent-encode text, query values or whole URLs, or decode %XX strings back to text. Supports encodeURIComponent, encodeURI and form rules with + for spaces.

View all tools
ResultUpdates as you type
fish%20%26%20chips%20%C2%A35

15 characters in, 28 characters out.

How to use URL Encoder and Decoder

Paste text or an encoded string, choose Encode or Decode, then pick the encoding rule that matches where the result will go. The output updates as you type, with character counts and warnings underneath.

  1. Paste your textEnter a search term, a parameter value, a full link or an encoded string such as caf%C3%A9.
  2. Choose the action and ruleUse Query value for single parameters, Whole URL to keep : / ? & = # intact, or Form data to write spaces as +.
  3. Copy the resultTick Process each line separately for lists, then press Copy result. When decoding, you can also undo double encoding.

Which encoding rule to use

The Query value rule follows encodeURIComponent: letters, digits and - _ . ! ~ * ' ( ) stay as they are and everything else becomes UTF-8 bytes in %XX form, so a b&c=1 becomes a%20b%26c%3D1 and fish & chips £5 becomes fish%20%26%20chips%20%C2%A35. The Whole URL rule follows encodeURI and keeps structural characters such as : / ? & = #, so the link still works after encoding. Form data matches what a browser sends for an HTML form and writes spaces as +. Tick Strict RFC 3986 to encode ! ' ( ) * as well.

How decoding copes with messy input

Decoding turns runs of %XX bytes back into UTF-8 text. A stray % that is not followed by two hex digits is left in place and reported rather than breaking the whole result, and bytes that are not valid UTF-8 (text saved as Latin-1 or GBK, for example) show as the replacement character �. With the Form data rule a + becomes a space; with the other rules it stays a plus sign. If the output still contains escapes such as %C3, the string was probably encoded twice: tick Undo multiple encoding and caf%25C3%25A9 decodes in two rounds to café.

Accuracy and data handling

Validate the result with your project's own tests and runtime rules before using it in production. The calculation runs in your current browser; the tool code does not send the input to a processing API.

Often Used Together

Next step

FAQ

Should a space be encoded as %20 or +?

Use %20 in paths and query values. A + only means a space in application/x-www-form-urlencoded form data. The encoder outputs %20 by default and + when you choose the Form data rule.

Why does my decoded text still show %C3 or %E2?

The string was probably encoded more than once, because %25 is an encoded % sign. Tick Undo multiple encoding and the tool keeps decoding, up to 10 rounds, until nothing changes.

Can I encode a whole link with the query value rule?

Only if the link is itself a parameter value, such as ?redirect=. That rule also encodes : and /, so https:// becomes https%3A%2F%2F and the link stops working on its own. Otherwise use the Whole URL rule.

Does it handle accented letters and emoji?

Yes. Characters are converted to their UTF-8 bytes, so £ becomes %C2%A3 and é becomes %C3%A9. Decoding reverses this, and invalid byte sequences are shown as � with a warning.

More Developer Tools

Related tools