CSV to Text Columns
Sometimes you need data laid out in readable columns without introducing Markdown, HTML or a spreadsheet, a code block in a README, a terminal-friendly report, a plain-text email to an ops team. This converter reads CSV (or tab, semicolon, pipe-separated) input and emits space-padded columns where every cell is padded to the width of the widest cell in that column. The result lines up perfectly in a monospace font.
How the columns get aligned
-
1
Paste the data
Any common flat-file separator works: comma, tab, semicolon or pipe.
-
2
Pick the delimiter
The tool parses quoted cells with `str_getcsv`, so embedded separators inside quotes are respected.
-
3
Column widths measured
For every column, the converter finds the widest cell across all rows and stores that as the target width.
-
4
Cells padded with spaces
Each cell is right-padded to the column width; columns are joined with two spaces between them.
Why monospace matters for this output
Space-padded alignment only works when every character is the same width. In proportional fonts (Helvetica, Arial, your blog body text) an i takes less horizontal space than an M, so the columns will look misaligned even though every cell has the same number of space characters.
Where it renders correctly
- Markdown code blocks (
``` ) <pre>and<code>HTML elements- Terminal output, log files
- Rich-text fields set to monospace (most IDEs, Gitea issue bodies)
Where it will look broken
- Regular paragraphs in blog posts
- Gmail and most email clients (they use proportional fonts by default)
- Slack messages outside of backticks
- Notion plain-text blocks
Alternatives for human-readable prose
| Target output | Reach for |
|---|---|
| Web page | CSV to HTML Table |
| GitHub README | CSV to Markdown Converter |
| Spreadsheet | CSV to Excel |
| API payload | CSV to JSON |
Tips
- Short cells win. Very long values force a column to be extremely wide. Truncate long text first or let it wrap by post-processing the output line-by-line.
- Tab-aligned is different. If you want
\t-separated output for pasting into a spreadsheet, skip this tool and use a plain TSV export, alignment will break in the spreadsheet anyway. - Wide Unicode counts differently. The converter measures by
mb_strlenwhich counts code points. Double-wide CJK characters will technically be wider than their count suggests; visually they can drift in some terminals.
Frequently Asked Questions
The tool pads cells with space characters. In proportional fonts an i occupies less horizontal space than an M, so even though the space count is correct, the pixels do not match. Render inside a code block or set the font to monospace.
Not directly, this tool uses double spaces as separators. For a pipe-delimited aligned view, post-process by replacing the double space with |, or use the CSV to Markdown Converter for a GFM-style table.
Missing cells are padded to the column width with spaces, so the output stays rectangular and aligns neatly.
Yes, the text you paste is sent to our server so the tool can align the columns. It is not stored and it is not added to the page link.
Related Tools
Business Name Generator
Generate business name ideas from industry keywords and style choices, then use the checklist to verify domains, registries and trademarks.
Word Counter
Count words, characters, sentences and paragraphs with reading time, speaking time, keyword density and a Flesch readability score for essays, posts, captions and meta descriptions.
Emoji Kitchen
Try verified Google Emoji Kitchen sticker pairs, download PNGs, and get supported suggestions when a pair is not in the curated set.
Character Counter
Count characters, words, lines, sentences and paragraphs in any text. See totals with and without spaces plus a character breakdown.
Password Generator
Generate strong random passwords with adjustable length, symbols, numbers and mixed case using cryptographic randomness.
Lorem Ipsum Generator
Generate clean Lorem Ipsum paragraphs, sentences or words for wireframes, mockups and drafts. Copy in one click.
Tool available in other languages
- CSV na kolumny tekstowe [PL]
- CSV'den Metin Sütunlarına [TR]
- CSV vers colonnes de texte [FR]
- CSVからテキスト列へ変換 [JA]
- CSV till textkolumner [SV]
- CSV转文本列 [ZH]
- Chuyển từ bảng CSV sang các cột văn bản [VI]
- CSV에서 텍스트 열로 변환하기 [KO]
- CSV ke Kolom Teks [ID]
- CSV إلى أعمدة النص [AR]
- Van CSV naar tekstkolommen [NL]
- CSV para Colunas de Texto [PT]
- CSV zu Textspalten [DE]
- CSV a Columnas de Texto [ES]
- คอลัมน์แปลงจาก CSV เป็นข้อความ [TH]
- CSV in colonne di testo [IT]
- Перевод столбцов из CSV в текстовый формат [RU]