URL Component Encoding Calculator
Encode a query-value or path-segment component, not an entire URL with separators.
Additional calculations: URL, component and form encoding
Your result
EVERYDAYExample values are prefilled. Results update automatically when JavaScript is available.
URL, component and form encoding
Choose component, whole-URI or form-field encoding with the matching decoding convention.
How this calculation works
Components escape URL separators. Whole-URI encoding preserves reserved separators. Form fields encode spaces as +; form decoding maps + to space before decoding UTF-8 percent escapes.
Malformed percent encodings are rejected. Encoding is not sanitization, link validation or encryption.
What this tool calculates
Encode a query-value or path-segment component, not an entire URL with separators.
Inputs used: URL component text, Operation.
Calculation modes and inputs
- Operation
- Encode a component, Decode a component
Choose the mode first. Only the fields relevant to that calculation are used; the result heading identifies the reported quantity.
On this page How it works & practical examples
How to use the URL Component Encoding Calculator
Encode a query-value or path-segment component, not an entire URL with separators. Malformed percent escapes are rejected.
The calculation
Worked example
hello world becomes hello%20world; plus signs remain literal on decoding unless they are percent-encoded.
Assumptions and limits
Does not apply form-urlencoded plus-to-space rules or sanitize a URL for navigation. Encoding changes representation, not trust or safety; all processing is local.