Command Output Table to CSV or JSON
Turn aligned columns from kubectl, docker, ps or df output into CSV, TSV or JSON, using the header row as keys and finding the columns from the spacing.
- Free
- No sign-up
- Works on any device
About Command Output Table to CSV or JSON
Commands such as kubectl get, docker ps, ps aux, df -h and netstat print tables with spaces instead of separators, which makes them awkward to paste into a spreadsheet or script. This converter finds the columns from the spacing: either the positions where every line has a gap of your chosen width, the places where header words begin, or plain whitespace with the last column keeping the rest. The header row becomes the CSV header or the JSON keys, numbers can become real JSON numbers, and the first rows are previewed.
How to use Command Output Table to CSV or JSON
- Paste the command output including its header line, keeping the original spacing.
- Choose how columns are found and the smallest gap that separates two columns.
- Pick CSV, TSV or JSON, check the preview and copy or download the result.
Why use this tool?
- Private: everything happens in your browser. Nothing you enter is uploaded.
- Free, with no sign-up, no watermark and no limit on how often you use it.
- Works on phones, tablets and computers: Android, iPhone, Windows, Mac and Linux. Nothing to install.
Also known as
Frequently asked questions
Why are two columns merged or split in the wrong place?
Single spaces inside values (like Up 2 hours) look like gaps. Raise the minimum gap to 2 or 3, or switch to the header positions method for left-aligned tables.
Will it work with a table copied from a web page?
Only if the spacing survives. Rich-text editors collapse spaces, so paste into a plain text box or copy straight from the terminal.
What about right-aligned numbers such as df output?
The gaps method handles them because it looks for blank columns across all lines, not for where the header words start.
Is Command Output Table to CSV or JSON free?
Yes. Command Output Table to CSV or JSON on Toolipedia is free to use, with no sign-up and no watermark.
Is it safe to use?
Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.
Does it work on my phone?
Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.
Do I need an account?
No. Just open the page and use the tool. There's no sign-up and no email needed.