Guides / FreeTools Lab

URL Encoding Explained Without Guessing

Why spaces and reserved characters need encoding when you construct a link.

Original guide · Updated October 7, 2026

Encode a component, not a whole URL blindly

A query value may contain spaces, ampersands or question marks. Encode the value before joining it to the URL so its characters are not mistaken for URL structure.

Decode only trusted text

Decoding malformed or untrusted strings can produce confusing output. Treat the result as text and review it before putting it into a link.

Test the final link

Open the finished URL in a safe environment and check that each parameter has the expected value. Encoding changes representation, not permission or security.

Try the related browser tools, then inspect the output before using it in your own workflow.