URL Encode / Decode

Result

hello%20world%20%26%20caf%C3%A9

Calculator inputs
?

Selects the supported arithmetic or transformation and determines which other inputs the calculation uses.

?

URL-component text or percent-escaped component to transform, not automatically an entire URL.

How to use the URL Encode / Decode

Encode or decode a URL component using UTF-8 percent encoding.

  1. 1. Enter your inputs

    Start with Operation, Text / encoded component. Use the units shown beside each field.

  2. 2. Read the results

    Results update as you enter valid values. Review Result. Keep the entered units and settings consistent when comparing scenarios.

  3. 3. Check the calculation

    Uses encodeURIComponent/decodeURIComponent for a component, not an entire URL. A plus sign is literal; application/x-www-form-urlencoded plus-to-space conversion is not applied.

    See the worked example and method

Understanding the URL Encode / Decode: uses, inputs and results

The URL Encode / Decode makes the UTF-8 percent encoding of a URL component easier to inspect and reverse.

Why do spaces and special characters appear as percent escapes in URLs?

Percent encoding represents the UTF-8 bytes of characters using escape sequences so a component can be carried without being mistaken for URL syntax. A component value and a complete URL have different structural roles. Encoding an entire URL as though it were one parameter can alter separators that were meant to remain structural.

Decoding is not validation of a link

The operation reverses supported escapes into text; it does not establish that a destination is trustworthy or that a full URL is correctly constructed. Keep the intended component boundary clear and avoid repeatedly encoding already escaped text unless that extra layer is actually required.

What do the URL Encode / Decode inputs mean?

Operation
Selects the supported arithmetic or transformation and determines which other inputs the calculation uses.
Text / encoded component
URL-component text or percent-escaped component to transform, not automatically an entire URL.

When is the URL Encode / Decode useful?

Prepare a URL component

Encode a parameter value or component containing spaces or reserved characters.

Inspect escaped text

Decode an encoded component to review its text. Component encoding is different from encoding an entire URL structure.

URL Encode / Decode: a practical reference

The fixed “Encode component” example on this page produces the results below. It illustrates the stated model; your live results above use your current inputs.

Operation
Encode URI component
Text / encoded component
a b&c
Result
a%20b%26c
Review the example inputs and calculation

Try the URL Encode / Decode·Read the subject guide·Explore a related calculator

Worked example: URL Encode / Decode

Encode component. This fixed reference example shows one complete scenario; the interactive results above use your current inputs.

View the example inputs
Operation
Encode URI component
Text / encoded component
a b&c
Calculated results for the fixed example
Calculated quantityExample result
Resulta%20b%26c

Using technical conversions and generated data correctly

Confirm the representation before converting

Technical values need a defined format as well as a number. Bits and bytes differ by a factor of eight. Decimal storage prefixes and binary prefixes differ in their powers. Network prefixes, text encodings and percent-encoded URL components each have their own syntax and boundaries.

An encoding changes representation rather than making data secret. Unicode text needs a defined character encoding, and not every decoded byte sequence is valid text. A subnet calculation describes address ranges but does not establish a network’s live configuration.

Use the output for its documented purpose

Transfer-time estimates assume a usable throughput rather than a guaranteed line speed. Random generators use independent draws, so a repeated result can be valid. Generated passwords should be handled as secrets when you choose to use them.

Read the supported mode, size limits and error message before reformatting an input. The worked example illustrates the representation or arithmetic, and the current result updates from the actual values in the form.

Formula and calculation method

Uses encodeURIComponent/decodeURIComponent for a component, not an entire URL. A plus sign is literal; application/x-www-form-urlencoded plus-to-space conversion is not applied.

Reference Sources

Frequently asked questions

How does this calculator work?

Uses encodeURIComponent/decodeURIComponent for a component, not an entire URL. A plus sign is literal; application/x-www-form-urlencoded plus-to-space conversion is not applied.

What assumptions should I check?

Check the units and definitions shown beside each input. Results use the values you enter.

Can I save or print this calculation?

Use Copy link with inputs to reproduce the scenario, Download results for a text record, or Print. Where a schedule is shown, its CSV download includes every row.