Skip to content
DDevToolery

URL Encoder

Percent-encode text, as a component or as a full URI.

Loading tool…

About this tool

Component encoding escapes the reserved delimiters (& = ? / #) because you are building a value that goes inside a URL. Full-URI encoding leaves them alone because they are doing their job.

Questions

Component or whole-URL mode?
Component, almost always. Use it when encoding one piece — a search term, a filename — that is about to be inserted into a URL. Whole-URL mode preserves / ? & = # and is only right when you are handing it a complete URL.
Should spaces be %20 or +?
%20 works everywhere. The plus sign means a space only in query strings, inherited from HTML form encoding — in a path it is a literal plus.
I see %2520 in my URL.
Something encoded an already-encoded value. %25 is an encoded percent sign, so %20 became %2520. Decode repeatedly until it stops changing to recover the original.

Privacy

This page does its work in your browser. What you paste is processed by JavaScript running on your own device and is never sent to a DevToolery server — there is no server that could receive it. The page itself is a static file delivered by a CDN. See exactly what is stored.