What is URL encoding?
URL encoding replaces unsafe URL characters with percent-encoded sequences so they can be safely used in URLs.
Developer Tools
Encode and decode URL components directly in your browser.
Convert spaces, query values, symbols, and path-like text into URL-safe encoded strings, or decode encoded values back to readable text.
Encode and decode URL components with browser-native functions.
// Encoded or decoded output will appear here. Add a URL component, query value, or encoded string.
Use browser-native encodeURIComponent and decodeURIComponent behavior.
Use the result in URLs, query strings, requests, or documentation.
`hello world/path?x=1` becomes `hello%20world%2Fpath%3Fx%3D1` when encoded as a URL component.
URL encoding replaces unsafe URL characters with percent-encoded sequences so they can be safely used in URLs.
Yes, encoding and decoding run locally in your browser.
Use encodeURIComponent for individual query values, path segments, or text that will be inserted into a URL.