Skip to tool

SQL URL component encode Online

URL-encode a URI component.

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.

Sample input
a b/c?d=e
Sample output
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.

SQL reference