URL Encoder / Decoder
Percent-encode or decode text and URLs — instantly
Runs in your browser
Type text to percent-encode.
Your data never leaves your device — encoding and decoding happen entirely in your browser, never uploaded.
About
Every space, ampersand, or accented character in a URL has to be escaped or the request breaks. Devbelt's URL encoder converts text to and from percent-encoding as you type, and lets you choose between encoding a single component — a query value or path segment — and a whole URL that keeps its :/?#&= intact. It runs entirely in your browser, so you can paste a token or a private link without any of it being uploaded.
Frequently asked questions
What is URL encoding (percent-encoding)?
URL encoding replaces characters that aren't safe in a URL — spaces, &, ?, non-ASCII letters — with a % followed by their hex byte value. For example, a space becomes %20. It keeps URLs valid and unambiguous.
What's the difference between component and full-URL encoding?
Component encoding (encodeURIComponent) escapes almost everything — use it for a single query value or path segment. Full-URL encoding (encodeURI) leaves the structural characters : / ? # & = intact — use it to encode a whole URL without breaking it.
Why does my decode say the input is malformed?
The text contains an invalid percent-sequence — usually a lone % or an incomplete %XY. Check for stray % characters or a truncated string.
Should a space be + or %20?
This tool uses standard percent-encoding, where a space is %20. The + convention comes from HTML form submissions (application/x-www-form-urlencoded); if you're decoding form data, replace + with a space first.
Is my text uploaded anywhere?
No. All encoding and decoding happens in your browser. Nothing you paste is sent to or stored on a server.