SQL URL component encode Online
URL-encode a URI component.
Run details
The output updates as you type. The tool processes input in your browser.
Worked example
Encode one path segment or parameter value when separators such as slash and ampersand belong to the data. Use PostgreSQL’s function reference to adapt the input to SQL syntax.
a b/c?d=e
a%20b%2Fc%3Fd%3De
Using this operation in SQL
The interactive result uses JavaScript. Check the database dialect. PostgreSQL text functions use SQL-style one-based positions and LIKE uses its own pattern syntax.