ToolsTechBox

ToolsTechBox Guide

URL Encoding Explained: What %20 Means

Why URLs can't have spaces — and how percent-encoding keeps the web working.

← Use the Free URL Encoder/Decoder

Why URLs Need Encoding

A URL can only contain a restricted set of ASCII characters. Spaces, accented letters, emoji, query separators like & and =, and many other characters have special meaning or are simply forbidden in raw URL form. Percent-encoding converts them into a safe %HH format.

How It Works

1. Take the character (e.g. space = byte 0x20) 2. Express each byte as %HH (two hex digits) 3. Space → %20 | & → %26 | = → %3D | # → %23 encodeURIComponent("hello world & more") → "hello%20world%20%26%20more"

encodeURI vs encodeURIComponent

Common Encoded Characters

Real-World Use Cases

Encode or decode any URL or URL component instantly — 100% offline and private.

Try the URL Encoder →