Fixed Width to CSV Converter
Paste a fixed-position report and enter the width of each column in order. Fixed width mode is already selected, so spaces inside a name or description remain in that field. Inspect the reported short lines and extra fields, then copy or download the comma-separated CSV. No file upload or account is required.
Paste your text into the first box and the CSV appears in the second. It is converted in this tab and nothing is uploaded.
How the text is read
The fields come from a setting, never from a guess: a delimiter you pick, or column widths you type. Nothing is sorted, deduplicated or reordered on the way through.
How the CSV is written
The file that comes out is comma separated and quoted by RFC 4180: a field holding a comma, a double quote, a carriage return or a line feed is wrapped in double quotes, and its own quotes are doubled.
Worked examples
The text and the settings are remembered in this browser alone, so they are still here when you come back. Start over, above the tool, forgets them. A paste longer than 20,000 characters is converted in full but is not written to storage. One pass reads up to 2,000,000 characters and writes up to 200,000 rows and 1,000 columns.
Common questions
- How do I choose the widths for a fixed width file?
- Count the positions reserved for each column, including its padding. For a name column 10 positions wide, quantity 5 positions wide and note 20 positions wide, enter 10, 5, 20. Paste the original text without removing its padding first. The header can use the same widths. Widths are counted in text positions; a supplementary Unicode character such as an emoji occupies two positions, so inspect those records before export.
- How is fixed width different from space-delimited text?
- Fixed width splits at the positions you specify. A field such as Ada Lee can contain spaces without becoming several columns. Space-delimited mode splits on each space, and Any run of spaces splits on runs of spaces or tabs. Use the main <a href="/text-to-csv">Text to CSV page</a> for those delimiter-based inputs.
- What happens if a line is shorter or longer than the widths?
- A short line keeps the text it contains and is reported. Text beyond the total width becomes an additional CSV field rather than being discarded. In delimiter mode, Pad short rows can add empty fields; fixed width slicing already creates a field for every specified width. Check the row issues before importing the CSV, because a shifted report can still be split at the widths you entered.
- Can I preserve column padding or turn it into clean cell values?
- Trim the spaces around each field is on by default. It removes leading and trailing whitespace after splitting while preserving spaces inside a value. Switch it off to keep the original padding. Commas, quotes and line breaks are quoted when needed for CSV, and you can choose LF or CRLF line endings.
- Can I convert large reports or several files at once?
- Paste one source at a time. One pass accepts up to 2,000,000 input text units, 200,000 rows and 1,000 columns, and writes up to 2,000,000 output text units. A column width may be at most 10,000. The displayed CSV preview stops at 50,000 text units while Copy and Download contain the whole accepted output. There is no folder or batch converter and no fixed width output writer.
Exact conversion under the settings you choose, quoted by RFC 4180 so a comma or a quotation mark inside a field survives. A line that does not fit the column count is reported rather than silently dropped or padded.