Percent-encode or decode text for safe URL handling.

Result

Run the tool to see the result here

Overview

URL Encoder helps you prepare query parameters, route segments, and form submissions by applying or removing percent-encoding exactly when you need it.

Use Cases

Query parameter preparation

Encode special characters such as spaces, ampersands, or Unicode before building links or API requests.

Debugging webhooks

Inspect incoming URL-encoded payloads from third-party services and decode them for easier reading.

Safe redirects

Validate and decode redirect targets captured from logs or database entries to ensure they match expectations.

How to Use

  1. Pick the direction

    Choose “URL encode” to apply percent-encoding or “URL decode” to reverse it.

  2. Paste or type the value

    Enter the raw text, query string, or route segment you need to transform.

  3. Format for readability

    After decoding long URLs, toggle the format button to wrap the output for easier inspection.

Frequently Asked Questions

Does encoding handle spaces correctly?

Yes. Spaces are encoded as %20, which is the preferred representation in modern web applications.

What happens with invalid escape sequences?

Decoding validates percent-escaped bytes. Invalid sequences—for example, `%G1`—produce a helpful error instead of returning corrupted data.

Related Tools

External Resources