URL Encoder

Paste a phrase or an address. Encode turns reserved characters into percent-escapes. Decode reverses those escapes. This is not the same as the slug generator: a slug drops punctuation, while this tool keeps the text as escaped bytes.

Limit: 400 KB. Ctrl or Cmd+Enter encodes.

Component versus full address

The query-value mode escapes almost every reserved character, including /, ?, and &. That is what you want for a single parameter. The full-address mode leaves those characters in place, so a complete URL can stay a URL. Decode reverses percent-escapes and treats + as a space, which is common in form bodies.

When this tool helps

Use the encoder when a search box, a callback URL, or a header needs spaces and ampersands escaped. Use decode when you received a percent-encoded string and want the readable text. The page does not fetch the URL and does not act as a proxy.

Questions

Why is / still visible after encode?

You chose full-address mode. Switch to query value if the slash is part of a parameter, not a path.

Why did decode fail?

A percent sign must be followed by two hex digits. A lone % or a broken pair is not valid encoding.

Does the text leave this tab?

No. Encode and decode run in the browser.