CalcToolsKitSimple tools. Clear answers.

URL Component Encoding Calculator

Free · No sign-up

Encode a query-value or path-segment component, not an entire URL with separators.

Additional calculations: URL, component and form encoding

Your inputs

Example values are shown. Edit them for your calculation.

Results update automatically as you edit.

Inputs stay in this page. No account needed.

Your result

EVERYDAY

Example 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

Percent-encode UTF-8 characters with encodeURIComponent; decode with decodeURIComponent

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.

AboutContactPrivacy PolicyTermsDisclaimerAll calculatorsSitemap