URL Encode / Decode
Encode or decode URI component text with percent escapes.
URL Encode / Decode Inputs
Results computed instantly — your data never leaves your device.
URL Encode / Decode Results
Real-TimeEncoded
Hello%20world
Decoded
Hello world
How to Use the URL Encode / Decode
- 1
Enter text or a percent-encoded component.
- 2
Review the encoded and decoded fields.
- 3
Use the output as a URI component, not a full URL policy validator.
- 4
Check reserved characters in the destination context.
Formula & Mathematical Basis
Variable Key
inputText or encoded URI component
%Prefix for a hexadecimal byte escape
📝 The route uses component semantics and does not validate an entire URL or its security.
Step-by-Step Examples
Encode a query fragment
Scenario: Enter a b?.
- 1.Encode the space.
- 2.Encode the question mark as a reserved character.
- 3.Keep the result as one URI component.
- 4.Review a%20b%3F.
Practical Use Cases
- Prepare query parameters.
- Inspect percent-encoded text during web debugging.
Common Pitfalls
- Encoding an entire URL when only a component should be encoded.
- Double-encoding existing escapes.
- Assuming encoding sanitizes untrusted HTML or script input.
Frequently Asked Questions
Does it validate URLs?
No; it encodes or decodes component text only.
Is encoding a security filter?
No; use context-appropriate validation and output encoding.
Math & Everyday Utility Calculators
Solve common math, conversion, time, construction, science, and practical planning problems in the browser.