CLI Table Converter
Turn aligned terminal output such as docker ps or df into a Markdown table, CSV or TSV.
CLI Table Converter
Output
Works on the aligned columns of docker ps, ps, df, kubectl and anything else that lines up in a terminal. Short rows are padded, so the table always comes out rectangular.
History for this tool
The most recent data you entered in this tool, stored only in this browser.
Save what you type here, in this browser? Your work would go into this browser's local storage, so a refresh or a trip to another tool does not wipe it. You also get a short list of previous entries under the form, each one restorable with a click. Nothing is ever uploaded, and there is no account.
Being straight about the trade-off: anything kept there can be read by anyone who can use this browser profile, and by any script that later runs on this site. A tool page can hold a private key, a password or a signed token. Saving is convenient; it is not private.
About this tool
Turn the columns printed by docker ps, ps, df or kubectl into a table you can paste into a document or a ticket. The separator is detected from the text, and the output can be a Markdown table, CSV or TSV. Rows of different lengths are padded so the result is always rectangular.
Questions
- Why does the automatic mode choose two spaces?
- In aligned terminal output a single space can appear inside a value, while two or more spaces are the gap between columns. Splitting on two spaces keeps names with one space intact, and any-run-of-spaces is available when a column is narrow.
- What happens to a pipe in the data?
- In a Markdown table a pipe would end the cell, so it is escaped as a backslash followed by the pipe. In CSV and TSV output the usual quoting rules apply instead.
- Can I drop the header?
- Clear the first-row box and the table is written without one. In Markdown output that means generic column names are used, because the format expects a header line.