URL Encoder / Decoder

Encode special characters for URLs or decode percent-encoded strings. Supports encodeURIComponent and encodeURI. 100% client-side.

Frequently Asked Questions

What is URL encoding?

URL encoding (also called percent-encoding) converts special characters into a format safe for URLs. For example, a space becomes %20 and & becomes %26.

What is the difference between encodeURIComponent and encodeURI?

encodeURIComponent encodes every reserved character, making it safe for a single query parameter value. encodeURI preserves URL structure characters like :/?#&, so it is used when encoding a full URL.

Is this URL encoder safe?

Yes. All encoding and decoding happens entirely in your browser using the built-in encodeURIComponent, encodeURI, and decodeURIComponent functions. Nothing is sent anywhere.

Why does my URL show %20 instead of spaces?

%20 is the percent-encoded representation of a space. URLs cannot contain literal spaces, so they are encoded whenever the URL is transmitted.

Can I decode double-encoded URLs?

Yes. If your string contains %2520, decode once to get %20, then decode again to get a space.

Related Tools You Might Like

Base64 Encoder/Decoder Encode and decode Base64 strings for APIs and URLs. HTML Entity Encoder Escape special characters for HTML output. JWT Decoder Inspect JSON Web Tokens safely in your browser.