Share a SQL query result in Slack

Query results pasted from a terminal lose their alignment in Slack. Paste MySQL or psql output, box-drawing tables or space-aligned CLI output (docker, kubectl…) and get a proper table.

Cleanup options
Slack preview
You

Your table will appear here, just like in Slack.

    How to convert SQL result for Slack

    1. Copy the query result from your terminal or SQL client.
    2. Paste it in the converter: borders and “(N rows)” footers are removed.
    3. Click “Copy for Slack” and paste in Slack.

    Example

    +----+---------+--------+
    | id | name    | orders |
    +----+---------+--------+
    |  1 | Alice   |     12 |
    |  2 | Bob     |      7 |
    |  3 | Chloé   |     23 |
    +----+---------+--------+
    3 rows in set (0.01 sec)

    SQL result to Slack: FAQ

    Which SQL clients are supported?

    MySQL / MariaDB (+---+ borders), PostgreSQL psql, SQLite box mode, DuckDB and any tool printing pipe or box-drawing tables.

    Can I paste docker or kubectl output?

    Yes. Columns aligned with spaces are detected; you can also force “Space-aligned columns” in the format list.

    How do I make a table in Slack?

    Slack displays a table when you paste tab-separated values (TSV), the format spreadsheets put in the clipboard. Paste your data in TableToSlack, click “Copy for Slack” and paste in your message: Slack shows a proper table.

    Why does my Markdown or CSV table look broken in Slack?

    Slack does not support Markdown tables, and pasted CSV stays plain text. Only tab-separated content becomes a table. TableToSlack converts your table to that format.

    Is my data sent to a server?

    No. All the conversion happens in your browser with JavaScript. Nothing is uploaded or stored, and the site has no analytics.