All tools
%20

URL Encoder/Decoder

Escape or unescape special characters in a URL or query string.

Encoding & hashing
input.txt
0 chars
output
0 chars
Overview

About this tool

Escape special characters in text so it's safe to use inside a URL or query string, or reverse the process to read a percent-encoded value back as plain text.

01

Why URLs need encoding at all

Certain characters — spaces, &, =, ?, # — have structural meaning in a URL: they separate the path from the query string, or one parameter from the next. If a value you want to pass actually contains one of those characters, it has to be percent-encoded first, or it will be misread as part of the URL's structure rather than as data.

02

Component encoding vs full-URL encoding

Encoding a single value that will become one query parameter is different from encoding an entire URL. Encoding a whole URL the same way you'd encode one value would also escape the slashes, colons, and question mark the URL needs to keep its structure — so a single value and a complete URL call for slightly different encoding.

Frequently asked questions

Why does a space sometimes become %20 and sometimes +?

Both are valid — %20 is the standard percent-encoding for a space, while + is a legacy convention from form submissions. Which one you should produce depends on where the encoded value is going; if you're unsure, %20 is the more universally safe choice.

Can I encode an entire URL, not just one value?

Encoding a full URL the same way as a single value would also escape characters the URL needs to keep its structure, like / and :. Encode each query parameter's value individually and assemble the URL around them instead.