Home/ Tools/ URL encoder
URL encoder / decoder · free, no signup
Make any string URL-safe.
Percent-encode or decode text in one paste — switch between escaping a single component (encodeURIComponent) and a full URI (encodeURI), then copy the result. Runs entirely in your browser; nothing is uploaded.
URL encoder / decoder
That isn’t valid percent-encoded text — check for a stray % or an incomplete %XX sequence.
Component escapes & ? = # / too — use it for one value. Full URI leaves a URL’s structure intact. Everything stays on this page; nothing is sent to a server.
Two scopes
Encode a value, or a whole link.
The right choice depends on whether you’re escaping one piece of a URL or the entire thing. Pick the wrong one and you either break the URL or leave it unsafe.
encodeURIComponent
Escapes everything with URL meaning — &, ?, =, #, /, : — so a value can’t break out of its slot. Use it for a single query-parameter value, a slug, or anything you’re dropping into a URL.
encodeURI
Leaves the structural characters that make a URL work untouched and only escapes what’s never legal, like a space. Use it when you have a whole URL and just want to make it safe to paste without scrambling its parts.
Why it matters
A space in a URL is a bug waiting to happen.
URLs only allow a limited set of characters. The moment a value carries a space, an ampersand, an emoji, or a non-Latin letter, the URL has to percent-encode it — otherwise the link truncates, a query parameter swallows the next one, or the whole thing 404s. Encoding by hand is error-prone; one missed % and decoding throws.
Paste your value here to encode it cleanly, or paste an encoded string to read what it actually says. Building campaign links instead? The UTM builder encodes your parameters for you, and the UTM parser decodes a tagged link back into a readable table. Got a short link and want to see where it lands? Run it through the link expander.
Questions
The honest answers.
What is URL encoding?
&, ?, non-ASCII letters — with a % followed by two hex digits (a space becomes %20). It lets you carry arbitrary text inside a URL without breaking how the URL is parsed.Component or full URI — which should I use?
encodeURIComponent) escapes everything with URL meaning, including & ? = # / — right for a single value like one query parameter. Full URI (encodeURI) leaves those structural characters alone so a whole URL stays usable. Encode a value with component, an entire link with full URI.Is it free, and is my text sent anywhere?
Why do I get an error when decoding?
% or an incomplete escape like %2 instead of %20. Fix the stray sequence, or switch to Encode if you meant to encode the text rather than decode it.More free tools
- UTM builder Tag campaign links for clean attribution.
- UTM parser Decode a tagged URL into a labelled table.
- Meta tag generator Copy Open Graph & Twitter Card tags.
- URL encoder you're here Percent-encode or decode any string.
- QR code generator Crisp SVG or PNG QR for any URL.
- Open Graph preview See your link's card on every platform.
- Link expander Expand short links — see where they really go.
Encoded the value? Now shorten the link.
Free forever. No card. Turn that long, encoded URL into a branded slsh.me short link with real-time analytics — the features other shorteners gate behind a paid plan.
Shorten with slsh.meTagging a campaign? Use the UTM builder · See pricing