Encoding URL components safely

Percent encoding represents bytes that cannot appear literally in a URL component. Encode individual values rather than blindly encoding a complete URL.

Practical example

hello world becomes hello%20world. A literal plus sign may need encoding as %2B in form-style query data.

Try it yourself

Open the related tool and compare its output with the example above.

Browse all networking guides