○ RUNS IN YOUR BROWSER

URL Encode & Decode

Percent-encode text so it's safe inside a link, or decode a URL full of %20 and %C3%A9 back into something readable. Paste a whole URL and its query parameters are listed one by one.

ENCODED

https%3A%2F%2Fexample.com%2Fsearch%3Fq%3Dcaf%C3%A9%20au%20lait%26tags%3Da%2Cb%26page%3D2%23results

URL PARTS

Schemehttps
Hostexample.com
Path/search
Fragmentresults

QUERY PARAMETERS (DECODED)

NameValue
qcafé au lait
tagsa,b
page2
● Ready 65 characters in98 characters out3 query parameters Processed locally · 0 bytes sent

Which characters get encoded

A URL may only contain a small set of characters: letters, digits and a few marks such as -, _, . and ~. Everything else, including spaces, accents, emoji and symbols with a special meaning like & and =, is written as % followed by two hex digits for each byte of its UTF-8 form. A space becomes %20, é becomes %C3%A9.

Reading a query string

Paste a long link from an email, an ad or an analytics report, and the query parameters appear one per line, already decoded. Repeated parameters stay in their order, so you can see exactly what a tracking link carries before you click it.

Encoding a value you put in a URL yourself

When you build a link by hand, encode each value separately with Component, then join them with & and =. Encoding the finished URL with Component would also encode the ?, & and = that hold it together.

How to URL encode or decode

  1. 1

    Pick Encode or Decode

    Encode turns spaces, accents and symbols into %-codes. Decode turns %-codes back into readable text. Swap sends the result back to the input and flips the direction.

  2. 2

    Choose Component or Full URL

    Component encodes everything except letters, digits and a few safe marks, for a single query value or path part. Full URL keeps characters like :/?&= so a complete address stays a working link.

  3. 3

    Copy the result

    The result updates as you type. When the text is a URL, its scheme, host, path, fragment and every query parameter show up decoded underneath.

Frequently asked questions

What is the difference between Component and Full URL?

Component works like JavaScript's encodeURIComponent and is what you want for one value, such as a search term in ?q=. Full URL works like encodeURI and leaves the characters that separate the parts of a URL alone, so you can encode a whole address without breaking it.

Why does a plus sign turn into a space?

In form data and most query strings, + stands for a space. With "+ is space" on, the decoder reads it that way. Turn it off when a + in the text is a real plus sign, as in a phone number or a Base64 value.

What does "isn't valid UTF-8" mean?

The %-codes decode to bytes that aren't valid UTF-8, the character set URLs use today. The text was probably encoded in an older character set such as Latin-1, where é is %E9 instead of %C3%A9.

Why is a space sometimes %20 and sometimes +?

Both mean a space. %20 is the standard URL encoding and works everywhere. + only means a space in query strings and form data. The encoder always uses %20, which every server understands.

Is my text sent anywhere?

No. Encoding, decoding and splitting the URL use your browser's built-in functions, so tokens and private links never leave your device.

On this page
Pages
Home
All tools
Suggest a tool
About
Privacy