v0.11.1

URL encoder

Percent-encode, decode and take apart URLs.


Component or URI?

encodeURIComponent escapes everything that has a meaning in a URL, which is what you want for a single query value. encodeURI leaves / ? & = alone so a whole URL stays usable.

Why does decode turn + into a space?

Form submissions encode spaces as +. Treating them as spaces is almost always what people expect when pasting a query string.

Other tools

json · base64 · unix · text · case · hash · colour