CSV to Fixed Width Text
Drop a CSV and get aligned plain-text columns at once, ready to copy or download as .txt.
Processed on your device. Nothing is uploadedHow to check
You can also paste CSV or JSON text with Ctrl+V (⌘+V on a Mac).
Paste text instead
Pasted text stays in this tab and is never sent anywhere.
Some systems still want fixed-width records, and plain text reads best when its columns line up. Choose, drop or paste a CSV or TSV file and the aligned text appears at once: each column padded to its widest cell, columns separated by a gap of 1 to 4 spaces that you choose, and the header underlined with dashes. Widths are counted per character, and wide characters such as Chinese, Japanese or Korean count as two, so columns stay straight in a monospaced font. Use it for mainframe and legacy imports, README files, emails or a terminal. The file is read in your browser, never uploaded.
Why use CSV to fixed width
Private
Your CSV is turned into aligned text by your own browser and never sent to a server.
Columns that line up
Each column is padded to its widest cell, and wide CJK characters count as two, so the layout holds in any monospaced font.
Works offline
Once this page has loaded, it keeps working without an internet connection.
How it works: convert CSV to fixed-width text
Add your CSV
Choose or drop a .csv or .tsv file, paste CSV text into the box, or try a sample.
Choose the gap
Pick 1, 2, 3 or 4 spaces between columns; the text is re-aligned at once.
Copy or download
Copy the text to your clipboard or download it as a .txt file with the CSV's name.
What the CSV to fixed-width converter handles
- Files: .csv and .tsv, or CSV text you paste; comma, semicolon, tab and pipe delimiters.
- Encodings: UTF-8, UTF-16 (when the file starts with a byte order mark), Windows-1256 Arabic and Windows-1252 Western European text, detected automatically.
- Layout: each column padded to its widest cell, with a gap of 1 to 4 spaces between columns.
- Header row underlined with dashes as wide as each column.
- Wide characters (Chinese, Japanese, Korean) counted as two columns so alignment holds.
CSV to fixed width: what it can't do
- Columns line up only in a monospaced font, such as a terminal, a code editor or a <pre> block.
- Widths come from your data; the page does not pad to a record layout you specify, so check it against your importer's spec.
- Arabic and other right-to-left text may look out of line in editors that reorder it, even though the character counts are right.
CSV to fixed-width text: questions and answers
- Is my file uploaded?
- No. Your browser reads the CSV and writes the aligned text on your device. Pasted text stays in this tab and is never sent anywhere.
- How wide is each column?
- As wide as its longest cell, header included. Shorter cells are padded with spaces, then the gap you chose separates it from the next column.
- Why do Chinese or Japanese characters count as two?
- In a monospaced font these characters take two cells of width. Counting them as two keeps every column straight below them.
- Can I set exact column widths for a mainframe import?
- No. Widths come from the widest value in each column. If your import needs set positions, compare the output with its record layout before loading it.
- Why do the columns look crooked?
- The text is aligned for a monospaced font. In a proportional font, such as in a word processor or most email bodies, letters have different widths; switch to a font like Courier or Consolas.
- Is there a size limit?
- No fixed limit, but very large files can take a few seconds. The preview shows the first 5,000 lines; Copy and Download always take the whole text.
- How do I convert a CSV to a fixed-width text file?
- Open or paste the CSV, choose the gap between columns, then copy the aligned text or download it as a .txt file. OpenAnyDoc pads each column to its widest cell in your browser, without uploading the file.
Why it's private: your files never leave your browser
Most online viewers upload your file to a server, so a copy of it leaves your device. OpenAnyDoc works the other way round: your browser reads the file and draws it on your screen. Nothing is uploaded, there is no account, and the file is gone from memory when you close the tab, so there is nothing for us to store, see or lose.
How we tell you about new features
Announcements are based on the release date shown to everyone, and nothing is stored on your device or sent anywhere.