Text & Data

URL Encode / Decode

URL-encode and decode strings for query parameters and paths.

Output

Related Tools

Frequently Asked Questions

What is the difference between encodeURI and encodeURIComponent?

encodeURI encodes a full URL, leaving characters like /, ?, #, and & intact. encodeURIComponent encodes a single component (like a query parameter value), encoding those characters too. Use encodeURIComponent for individual values.

Does my data leave the browser?

No. Encoding and decoding run entirely in your browser using JavaScript's built-in functions. Your data is never sent to any server.

Why does %20 sometimes appear as + in URLs?

The + sign is an older form of space encoding used in HTML form submissions (application/x-www-form-urlencoded). Modern URLs use %20. Both are valid in query strings, but %20 is safer in path segments.