ƒCalculatorFree
MathVerified logic

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-Time

Encoded

Hello%20world

Decoded

Hello world

100% Client-SidePrivate & Secure

How to Use the URL Encode / Decode

  1. 1

    Enter text or a percent-encoded component.

  2. 2

    Review the encoded and decoded fields.

  3. 3

    Use the output as a URI component, not a full URL policy validator.

  4. 4

    Check reserved characters in the destination context.

Formula & Mathematical Basis

URL component encoding replaces characters with percent-encoded UTF-8 bytes; decoding reverses that mapping.

Variable Key

input

Text 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

1

Encode a query fragment

Scenario: Enter a b?.

  1. 1.Encode the space.
  2. 2.Encode the question mark as a reserved character.
  3. 3.Keep the result as one URI component.
  4. 4.Review a%20b%3F.
The encoded component is 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.