https:example.com/search?q=hello%20world&lang=it&tag=c++%20developer—{"q":"hello world","lang":"it","tag":"c developer"}Encode and decode URLs and their components instantly in your browser. Convert special characters, spaces, and unicode to percent-encoded format and back — essential for working with APIs, web forms, and query strings.
encodeURIencodeURIComponentencodeURI preserves characters that are valid in a full URL (like :, /, ?, #), while encodeURIComponent encodes everything except letters, digits, and - _ . ! ~ * ' ( ) — making it perfect for encoding individual query string values.
Example — encoding https://example.com?redirect=https://other.com/path?foo=bar:
All encoding and decoding is performed locally in your browser. No data is ever sent to any server.