Prepare a query value
Encode spaces, punctuation and Unicode before inserting a value into a URL.
Make text URL-safe or decode percent-encoded strings instantly.
Turn text into a percent-encoded URL component with the browser’s standard encodeURIComponent function, or decode an encoded component back to readable text.
This is useful for query values, path segments and test data. Because the tool treats the complete input as one component, reserved separators such as slashes and question marks are encoded too.
Encode spaces, punctuation and Unicode before inserting a value into a URL.
Turn percent escapes back into readable text while debugging.
Compare encoded inputs expected by a form or API.
Represent accented and non-Latin characters safely inside a URL component.
It uses component encoding, so pasting a complete URL will also encode its separators.
encodeURIComponent represents spaces as %20, not as a plus sign.
Yes, when the input contains valid percent-encoded UTF-8 text.
A percent sign may not be followed by a valid two-digit hexadecimal escape.
No. Encoding and decoding run in your browser.