Convert MySQL Output to Excel Online

Paste a MySQL Output table below, edit it if you need to, and get Excel back. The conversion runs in your browser, so nothing is uploaded, there is no size limit and there is no signup.

From

The only part of this site that uses a server. The address is sent to it so the page can be fetched, because a browser is not allowed to fetch someone else's page itself. Your own files are never involved.

Nothing here is uploaded. The parsing happens on this page.
Edit
Paste or upload something above and it will appear here.
ToDataMarkupDocumentsCodeSchemasImages

The output will appear here once there is a table to convert.

What MySQL Output is

Not a file format at all. It is what the MySQL command line prints when you run a query: a box drawn with plus signs, dashes and pipes, with a line underneath saying how many rows were in the set.

Anyone who has run a query in a terminal and wants the answer in a spreadsheet.

What Excel is

An Excel workbook is a zip archive of XML parts describing sheets, cells, formulas, styles and charts. The .xlsx extension is that format; .xls is the older binary one from before 2007.

Finance, operations and anyone who received a file from finance or operations.

What changes when you convert MySQL Output to Excel

The rules and the trailing row count are dropped and the pipes become column boundaries. MySQL prints an unset value as the four characters NULL, which arrives here as an empty cell, because that is what NULL means and because a literal string of NULL in a spreadsheet is worse than a blank. Paste it as CSV instead and every row becomes one column full of pipes, which is why this is its own format.

You get a single sheet with a header row and column widths sized to the content. Values are written as text unless type inference is on, which keeps identifiers like 0044 or 007 intact.

What carries over from MySQL Output to Excel

One property of the MySQL has no home in Excel, and it is worth knowing which before you convert.

Excel has no separate idea of a header, so the column names become an ordinary first row and nothing in the file marks them as different from the data.

Both formats record types, so numbers, booleans and nulls survive as themselves rather than as text.

Questions

How do I convert MySQL Output to Excel?

Paste your MySQL Output into the box above or drop the file onto it. Check the table in the grid, then copy or download the Excel from the output panel. It takes one step and the data never leaves your browser.

Can I paste output from psql or sqlite3 as well?

psql draws its box with different characters and is not read here. Both psql and the MySQL client can print tab-separated output instead, which is detected as TSV and is the more reliable route for either: mysql -B, or \pset format unaligned and \pset fieldsep in psql.

Does converting to Excel keep my formulas?

No. A table has values, not formulas. If your source came from Excel in the first place, the formulas were already resolved to their results before they reached this page. Anything that was =SUM(A1:A10) arrives as the number it produced.

Is there a limit on file size?

No. The work happens on your own machine, so the limit is your machine's memory rather than an upload cap. A file with tens of thousands of rows converts in a second or two.

Is my data uploaded anywhere?

No. The parsing and generating are done by JavaScript running on this page. You can watch the network tab while you convert and see that nothing is sent.

Related conversions