SQL to Markdown Table

Paste SQL query results from any database client (tab-separated or pipe-delimited) and convert them to a clean Markdown table instantly.

What Does This Tool Do?

Convert SQL query results (tab-separated from psql/SQLite, pipe-separated from MySQL, or CSV exports) to Markdown tables. Includes rendered preview and filters MySQL border lines automatically.

Key Features

🗄️
3 DB Formats
Tab (psql/SQLite), pipe (MySQL), CSV.
🔧
Auto-Cleans
Strips MySQL +---+ border lines automatically.
👁️
Preview
Rendered HTML table preview.
📋
Copy
One-click copy of the Markdown output.

How to Use

  1. Copy query results from your database client.
  2. Paste into the input box.
  3. Select the format and click Convert.
  4. Copy the Markdown table.

Frequently Asked Questions

How do I copy results from MySQL?
Run your query with the -t flag for table format, or use a GUI client and copy the grid. For pipe-separated output use MySQL with --table flag.
How do I get tab-separated output from psql?
Use \pset format unaligned and \pset fieldsep '\t' in psql, then run your query.
Can I use this for any tabular data?
Yes — as long as data is consistently delimited (tab, pipe or comma), this tool will convert it regardless of the source.