Skip to content

URL Encoder and Decoder

Percent-encode or decode URLs, query values and form data, line by line if you like, and see any URL broken into its parts.

  • Free, no sign-up
  • Runs in your browser
  • Sources cited
Direction

Text is encoded as UTF-8, so accents, other alphabets and emoji work.

Encoded

Characters
91
% sequences
15

URL parts

Scheme
https
Host
example.com
Path
/search
Fragment
top

Query parameters

NameValue (decoded)
qcafé crème
sortprice desc

Everything runs in your browser. Nothing you enter is uploaded.

How to use the URL encoder and decoder

  1. Choose encode or decode

    The result updates as you type.

  2. Choose what the text is for

    A single value inside a URL, a whole URL, HTML form data, or strict RFC 3986. Each leaves different characters alone.

  3. Convert many at once

    Turn on “Each line separately” to encode or decode a list.

  4. Read the URL parts

    When the input is a full URL, the tool lists its scheme, host, port, path, fragment and every query parameter, decoded.

  5. Copy, download or swap

    Copy the result, download it, or send it back to the input to reverse the conversion.

How URL encoding works

RFC 3986 allows only some characters in a URL. Others are written with percent-encoding: each byte of the character, in UTF-8, as % followed by two hexadecimal digits. Letters, digits and - . _ ~ are never encoded. Characters such as / ? & = and # have special meanings, so whether they are encoded depends on where the text goes.

The four modes
ModeUse it forLeaves alone
A value in a URLA query value or path segmentLetters, digits and - _ . ! ~ * ' ( )
A whole URLA complete address with spaces or accentsAlso ; , / ? : @ & = + $ #
Form dataBodies sent by HTML formsLike a value, but a space becomes +
Strict RFC 3986Signatures and APIs that need itOnly letters, digits and - . _ ~

The first two match JavaScript’s encodeURIComponent and encodeURI, which MDN documents. Form data follows the application/x-www-form-urlencoded format in the URL Standard, where spaces become +. The URL parts are read with the browser’s own URL parser, which follows the same standard.

Worked example

The value “café & crème” becomes caf%C3%A9%20%26%20cr%C3%A8me as a value in a URL, and caf%C3%A9+%26+cr%C3%A8me as form data. The letter é is the bytes C3 A9 in UTF-8, so it is written %C3%A9.

Encoding the whole address https://example.com/a b?q=café as a URL keeps its structure: https://example.com/a%20b?q=caf%C3%A9. Encoding it as a value would also encode the slashes and colon: https%3A%2F%2Fexample.com%2Fa%20b%3Fq%3Dcaf%C3%A9, which only makes sense when the address itself goes inside another URL.

The text it's (fine)! is it's%20(fine)! as a value, but it%27s%20%28fine%29%21 in strict mode. Decoding the value form of “café & crème” gives the original back.

Understanding the result, and common mistakes

  • Encoding twice. %20 encoded again becomes %2520. Decode first if the text is already encoded.
  • Encoding a whole URL as a value. Slashes and the colon get encoded and the address stops working.
  • Using + for spaces in paths. + means a space only in form data; elsewhere use %20.
  • Malformed sequences. A % must be followed by two hexadecimal digits, and multi-byte characters need all their bytes. The tool shows the line and position of the first problem.

Frequently asked questions

What is the difference between encodeURI and encodeURIComponent?

encodeURI keeps the characters that give a URL its structure, such as / ? and &; encodeURIComponent encodes them too, for a single value.

Why is a space sometimes + and sometimes %20?

Form data writes spaces as +; everywhere else in a URL they are %20.

Is my text sent anywhere?

No. Everything runs in your browser.

Can I see the parameters of a long URL?

Yes. Paste the full URL and the tool lists each query parameter, decoded.

Sources

  1. RFC 3986: Uniform Resource Identifier (URI): Generic SyntaxRFC Editor · retrieved Nov 14, 2026
  2. URL StandardWHATWG · retrieved Nov 14, 2026
  3. encodeURIComponent()MDN Web Docs · retrieved Nov 14, 2026

About these results

  • Encoding and decoding run in your browser. Nothing you enter is uploaded.