What Is URL Encoding
Understand percent-encoding and why URLs need it.
URL encoding (percent-encoding) makes URLs safe for special characters.
Why It's Needed
Characters like spaces, &, ? have special meaning in URLs.
How It Works
Each unsafe character → %XX where XX is its hex code.
Example
"hello world" → "hello%20world".
Encode Instantly
Use a browser-based tool — no data sent anywhere.
FAQ
What's the difference between encodeURI and encodeURIComponent?
encodeURI preserves URL structure; encodeURIComponent encodes everything.
Are spaces %20 or +?
%20 in paths, + in query strings (form encoding).