advertisement
// text ↔ %20-encoding

URL encoder & decoder

Make any text safe to put in a URL — or turn a %-riddled link back into something you can read. Converted live as you type.

advertisement

Two kinds of encoding — pick the right one

Encode a value escapes everything that has special meaning in a URL (including / ? & =) — use it for a single piece of text going into a query string, like a search term. Encode a full URL only escapes characters that can't appear in a URL at all (like spaces) and leaves the URL's own structure intact. Using the wrong one is the classic cause of broken links.

Why do spaces sometimes show as + instead of %20?

An older convention for web forms encodes spaces as +. The modern standard is %20. The decoder here understands both.

Is my text sent anywhere?

No — this runs entirely in your browser with plain JavaScript. Nothing is uploaded.