URL Encoder & Decoder

Developer Tools

Percent-encode or decode text and URLs, and break a URL into its parts and parameters.

Options
Text or URL
Encoded

Processed in your browser. A copy of each run is saved to your past runs so you can reopen it. Privacy

About

What the URL Encoder & Decoder does

The URL Encoder & Decoder converts text to percent-encoding and back as you type. Encode a value for a query string or a whole URL, optionally with + for spaces as HTML forms do. Decoding repeats until the text is plain, which fixes double-encoded links, and reports malformed % sequences with their position. When the text is a URL, a table shows its scheme, host, path and each decoded parameter.

Steps

How to use it

  1. 1Choose Encode or Decode.
  2. 2Paste the text or URL; the result updates as you type.
  3. 3Copy the result, or read the URL parts table below it.

Example

A real run

Input

Value to put in a query string: red shoes & socks 👟

Output

Encoded value: red%20shoes%20%26%20socks%20%F0%9F%91%9F

In a URL: https://shop.example.com/search?q=red%20shoes%20%26%20socks%20%F0%9F%91%9F&size=10

Parsed:
Scheme: https
Host: shop.example.com
Path: /search
?q = red shoes & socks 👟
?size = 10

In value mode the & is encoded as %26 so it stays part of the q value, and the emoji becomes its four UTF-8 bytes. The parts table decodes each parameter back.

Options

Every setting, and when to use it

Encode as a value or a whole URL
A value (encodeURIComponent) also encodes & = ? / and :, which is right for anything you put inside a query parameter. A whole URL (encodeURI) leaves those characters alone so the URL keeps working.
Spaces as +
HTML forms send spaces as + in query strings (application/x-www-form-urlencoded). Turn this on to produce or read that style; elsewhere a space is %20.
Decode until plain
Links copied through redirects and trackers are often encoded twice, so %2520 decodes to %20 instead of a space. This repeats decoding until no escapes remain.

Good to know

Common problems and limits

Up to 5 MB. A % not followed by two hex digits, or bytes that are not valid UTF-8 (such as %E9 from old Latin-1 forms), are reported with their position.

The URL table appears when the text starts with a scheme such as https://; fragments after # are shown but never sent to servers by browsers.

For other escaping, see JSON Escape and the HTML Entity Encoder; for binary data, Base64.

Audience

Who uses it

  • DevelopersBuild a query string by hand, or read the parameters of a long URL from a log or an error report.
  • MarketersDecode a tracking link to check its UTM parameters, or encode a destination URL for a redirect.
  • Support engineersMake sense of encoded URLs in customer reports, including double-encoded ones from email security scanners.

FAQ

Frequently asked

What is URL encoding?

Also called percent-encoding: characters that are not allowed or have a special meaning in a URL are written as % followed by their byte value in hex. A space becomes %20, & becomes %26, and é becomes %C3%A9, its two UTF-8 bytes.

What is the difference between %20 and +?

Both can mean a space, but + only means a space in query strings encoded the way HTML forms do it. In a path, + is a literal plus sign. %20 is safe everywhere, which is why encoding defaults to it.

What is the difference between encodeURI and encodeURIComponent?

encodeURI encodes a whole URL and keeps characters such as : / ? & = that give the URL its structure. encodeURIComponent encodes a single piece, such as a parameter value, and escapes those characters too, so a value containing & cannot break the query string.

What does %25 mean?

%25 is an encoded percent sign. Seeing %2520 means a space was encoded twice: %20 became %2520 because its % was encoded again. Decode until plain fixes it.

How do I URL-encode in Python or JavaScript?

Python: urllib.parse.quote("red shoes", safe="") or quote_plus for form style, and unquote to decode. JavaScript: encodeURIComponent("red shoes") and decodeURIComponent(…); new URL(…).searchParams handles query strings for you.

Is my text sent anywhere?

No. Encoding and decoding happen in your browser. A copy of each run is saved to your past runs so you can reopen it.

Automation: an MCP tool url_encode(text, mode), url_decode(text) and an n8n node are planned for this tool.

GuideEncoding vs hashing vs encryption, with examples →Encoding changes the format, hashing makes a fingerprint, encryption hides data behind a key. Worked examples with Base64, SHA-256, HMAC, TOTP and UUIDs.
Built and maintained by Radhika SinghLast updated Questions: hello@operativez.ai