Developer Tools

URL Encode / Decode

Live

Percent-encode text for safe use in a URL component or decode percent-encoded text.

About URL Encode / Decode

Percent-encode text for safe use in a URL component or decode percent-encoded text. Enter operation, input, represent spaces with plus signs in a purpose-built workspace that keeps related controls together and makes units explicit. Encoding applies UTF-8 percent escapes to characters that are not safe in a URI component. Decoding validates percent sequences and converts bytes back to Unicode text. The result panel reports converted value, operation used, changed character count with copy-ready values and supporting context. Component encoding is different from encoding an entire URL. Encoding a full URL at once can escape structural characters such as colons, slashes, question marks, and ampersands. Processing stays in your browser and the entered values are not sent to UtilityPages.

Set up URL Encode / Decode

Workspace

Source workbench

Edit the source fields below and inspect the rendered output alongside your work.

Complete the fields to prepare a result.

Choose the operation that matches the calculation.

Enter a URL component to encode or percent-encoded text to decode.

Turn represent spaces with plus signs on or off.

URL Encode / Decode results

Enter the values above, then encode or decode url text to see the result.

URL Encode / Decode method

Encoding applies UTF-8 percent escapes to characters that are not safe in a URI component. Decoding validates percent sequences and converts bytes back to Unicode text.

How it works

Encoding applies UTF-8 percent escapes to characters that are not safe in a URI component. Decoding validates percent sequences and converts bytes back to Unicode text. Component encoding is different from encoding an entire URL. Encoding a full URL at once can escape structural characters such as colons, slashes, question marks, and ampersands.

Examples

URL Encode / Decode example

Example input
{
    "operation": "encode",
    "input": "summer sale & category=tools",
    "space_as_plus": false
}
Expected result
{
    "result": "summer%20sale%20%26%20category%3Dtools",
    "operation": "encode",
    "changed_characters": 32
}

Privacy

This tool does not store your inputs or results on UtilityPages.org.

Frequently asked questions

How does the URL Encode / Decode work?

Encoding applies UTF-8 percent escapes to characters that are not safe in a URI component. Decoding validates percent sequences and converts bytes back to Unicode text.

What information should I enter in the URL Encode / Decode?

Enter operation, input, represent spaces with plus signs. Use values from the same scenario and keep measurement units consistent with the labels shown.

What results does the URL Encode / Decode provide?

The result workspace reports converted value, operation used, changed character count. Supporting values are included so the primary result can be checked and interpreted.

How exact is the URL Encode / Decode?

Component encoding is different from encoding an entire URL. Encoding a full URL at once can escape structural characters such as colons, slashes, question marks, and ampersands.