Free online tools · Browser-first utilities · No account required
Home / Blog / URL Encoding Explained: Spaces, Symbols, and Query Parameters

URL Encoding Explained: Spaces, Symbols, and Query Parameters

On this page
  1. Encode a component for its context
  2. Compare the forms
  3. Avoid repeated transformations
  4. Encode the correct component
  5. Avoid double encoding

Encode a component for its context

Reserved characters have structural meaning in URLs. A literal ampersand inside a query value must not accidentally become the separator between parameters. Use a URL-building API or encode the individual value rather than applying replacements to the entire address.

Compare the forms

The text “blue sky” can appear as blue%20sky in an encoded component. Form-style query encoding may use a plus sign for a space. A literal plus sign therefore needs careful handling when decoding form data.

Avoid repeated transformations

Encoding an already encoded percent sign can turn %20 into %2520. Decode only the layer the data actually uses. Test a value containing spaces, &, + and a non-ASCII character. The destination should receive the original value, while the URL retains its intended path and parameter structure. Encoding is a transport convention, not encryption or a safety check.

URL Encoder / Decoder

Browse all guides →

Encode the correct component

An ampersand inside a query value such as “tea & coffee” needs protection from being treated as a parameter separator. Encoding the whole assembled URL can also transform structural characters that should remain meaningful.

Avoid double encoding

Encoding a percent sign again creates a different sequence. Decode only when the current value is known to be encoded. Test a sample containing spaces, an ampersand and non-English characters, then compare the decoded result with the source.

Report a correction

Keep exploring

Put this guide into practice with the free online tools directory, or browse more step-by-step guides.