Encoding uses encodeURIComponent and decoding uses decodeURIComponent; the tool does not visit the address.
URL Encoder & Decoder
Encodes text as a URL component with encodeURIComponent or decodes it. It is safest to work on a single parameter value rather than a complete URL.
What does this tool do?
Convert query values into safe URL components.
Your result will appear here.
URL Encoder & Decoder: method and usage
Encodes text as a URL component with encodeURIComponent or decodes it. It is safest to work on a single parameter value rather than a complete URL.
Enter one URI component or parameter value to encode, or percent-encoded text to decode. Confirm the shape first with a small example containing no personal data.
The result is a component with reserved characters escaped as percent sequences, or text decoded once.
Practical steps
- Enter a URL component.
- Choose encode or decode.
- Verify the result before using it in a real link.
a+b & page=1 must become a%2Bb%20%26%20page%3D1. Decoding must preserve the original plus sign.
Encoding a whole address also escapes its colon and slashes. The form-decoding rule plus → space does not apply here.
Suitable use cases
- Preparing query parameters
- Inspecting broken links
- Decoding redirect values
URL: distinguish a value from a whole address
This sample is one parameter value. The plus becomes %2B, spaces become %20, and the ampersand becomes %26, preventing it from starting an unintended parameter. Encoding an entire https address also escapes its colon and slashes, so the result is no longer a directly navigable address. Encode the value when building a URL and verify how the destination decodes it.
a+b & page=1a%2Bb%20%26%20page%3D1Input that should fail
%E0%A4%AThe incomplete percent sequence %E0%A4%A must fail. Also, decodeURIComponent("a+b") returns a+b; it does not automatically turn a plus into a space. Confusing form decoding with URI-component decoding can change a search query. Encoding the result twice escapes the percent characters again, so pass a value encoded exactly once to the receiving system.
Guides for this tool
QR Code Safety Before You Generate or Scan
Evaluate hidden destinations, design tolerances, and safer sharing controls for QR codes.
Read guide →Turn a cURL Command into Safer Application Code
Harden generated code with secret management, timeouts, error checks, and correct payload encoding.
Read guide →Frequently asked questions
What input does URL Encoder & Decoder accept?+
Enter one URI component or parameter value to encode, or percent-encoded text to decode. Enter a URL component.
What does URL Encoder & Decoder return?+
The result is a component with reserved characters escaped as percent sequences, or text decoded once. Encoding uses encodeURIComponent and decoding uses decodeURIComponent; the tool does not visit the address.
How should I validate URL Encoder & Decoder output?+
a+b & page=1 must become a%2Bb%20%26%20page%3D1. Decoding must preserve the original plus sign.
Does URL Encoder & Decoder send or store input on a server?+
Tool input is processed in the active tab. Saving to the Workstation or transferring to another tool is a separate choice. Consider browser extensions and shared devices separately; the privacy page explains advertising and network connections.