URL Encoder & Decoder
Percent-encode text for safe use in a URL, or decode an encoded URL back to plain text.
Last updated
Encoded or decoded text will appear here.
Copied
Component vs. full URI encoding
encodeURIComponent escapes every character that isn't valid in a single URL segment — including & ? = / : — which is what you want when encoding a query parameter value or a piece of a path. encodeURI assumes you're encoding an entire URL already and leaves structural characters like : / ? & = untouched, only escaping spaces and unsafe characters.
All processing happens locally using the browser's built-in encoding functions — nothing is sent to a server.