Space becomes `%20`
A visible example that shows why raw text should not be dropped directly into a URL.
hello world -> hello%20world Understand percent-encoding, when it matters, and how to encode or decode URLs safely when debugging web requests.
URL encoding looks trivial until a request breaks because spaces, ampersands, question marks, or Unicode characters were interpreted as structure instead of data.
Percent-encoding is one of those web fundamentals that becomes visible only when something goes wrong.
URL encoding replaces characters that are unsafe or reserved in a URL with percent-based escape sequences.
It is especially important inside query strings, path segments, and form submissions.
A visible example that shows why raw text should not be dropped directly into a URL.
hello world -> hello%20world Characters like `&` or `=` have structural meaning inside query strings.
Usually only the dynamic component you are inserting, such as a query parameter value or path segment, should be encoded.
That usually means the data was encoded twice. `%25` is the encoded form of the percent sign itself.