Skip to tool

SQL Base64 encode Online

Encode UTF-8 text as Base64.

The output updates as you type. The tool processes input in your browser.

Worked example

The browser encodes text as UTF-8 bytes before Base64. The result can be decoded back to the original bytes. Use PostgreSQL’s function reference to adapt the input to SQL syntax.

Sample input
Café
Sample output
Q2Fmw6k=

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