Free tool

URL Encoder / Decoder

Convert text to and from percent-encoded URL form, in your browser.

URL Encoder / Decoder
encodeURIComponent / decodeURIComponentNo data leaves your deviceRound-trip safe

How it works

Paste text to encode it for use in URLs, or paste a percent-encoded string to decode it. Two buttons, instant result, no upload.

Methodology

Encoding uses JavaScript's encodeURIComponent, which percent-escapes characters that have meaning in URLs (& = ? # space, etc.) and any non-ASCII bytes. Decoding uses decodeURIComponent. Invalid sequences raise a clear error.

Frequently asked questions

When do I need URL encoding?

Whenever you put user-supplied text in a URL — query parameters, path segments, hash fragments. Forgetting to encode is a leading source of bugs and injection issues.

Why does my decoded text show '+' instead of spaces?

Form-encoded URLs use '+' for space; URL-encoded paths use '%20'. We use the strict URL form. To convert form-style, replace '+' with space first, then decode.

Other free tools