Fixed-Width Text to CSV Converter
Turn fixed-width text, such as old exports, reports and printouts, into CSV. Columns are detected automatically from the gaps between them, or you can type the exact width of each column.
How to Convert Fixed-Width Text to CSV
Quick answer: paste your Fixed-Width Text or open the file; the CSV appears below. Copy it or download the .csv file.
-
1
Add your Fixed-Width Text
Paste it or open a file.
-
2
Choose options
Adjust the output on the right.
-
3
Check the CSV
Errors are explained clearly.
-
4
Copy or download
Save it as .csv.
What You Get
What Is Fixed-Width Text?
Fixed-width text lines up data in columns by padding each value with spaces, so every column starts at the same position on every line. Old mainframe exports, bank statements, government data files and reports printed for monospaced fonts use this layout.
What Is CSV?
CSV (comma-separated values) is the universal spreadsheet exchange format: one row per line and a comma between values, with quotes around values that contain commas, quotes or line breaks. Every spreadsheet, database and data tool can read and write CSV.
Why Convert Fixed-Width Text to CSV?
Fixed-width files from mainframes, banks, government data portals and older programs are hard to use in spreadsheets. Converting them to CSV puts every value in its own cell, ready to sort, filter and analyse.
How the Conversion Works
Automatic detection finds character positions that are blank on every line and splits the columns there. Lines made only of dashes or equals signs are skipped, values are trimmed, and you can override detection by typing widths such as 4,15,9,7,6.
Example
The sample report with a dashed rule becomes a CSV with the header ID,NAME,CITY,SCORE,PASSED and three rows, with "Chen Wei, Jr." quoted.
Who Uses It?
Analysts working with legacy exports, accountants handling bank files and researchers using government data files. Because everything happens in the browser, it is also safe for internal and confidential files.
Using Your CSV File
Open the CSV in any spreadsheet program, or import it into a database or data tool. Choose a semicolon separator if your spreadsheet expects it, and check the first rows to make sure every value landed in the right column.
Common Problems in Fixed-Width Text Input
Automatic detection looks for columns of spaces that run through every line, so it works best when values never touch the next column. If a long value fills its column completely, two columns may merge, or a value containing a space may split. In that case type the width of each column, such as 6,20,10, and the text is cut at exactly those positions. Rows of dashes are ignored.
Checking Your CSV Output
Check the header row first: it lists every column found, in order. Rows missing a value get an empty cell, and values with commas, quotes or line breaks are quoted correctly. Choose a semicolon separator if your spreadsheet uses a comma for decimal numbers, which is common in many European settings, so columns split correctly when the file opens.
Step by Step
Start by pasting your Fixed-Width Text into the input box, or press Open File to load it from your device. The converter reads it straight away and shows the CSV in the output box. If the input has a problem, a short message explains what is wrong and where, so you can fix it in place. Next, adjust the options on the right; the output refreshes immediately so you can compare. When you are happy, press Copy to put the result on your clipboard, or Download to save it as a .csv file ready to use.
Private, Free and Instant
The converter is free, with no sign-up, no limit beyond the 5 MB file size and no watermark. It runs in your browser, so settings files with passwords, server addresses or customer data are never uploaded or stored. Paste the content, drop a file on the input box or press Open File, then copy the result or download it with the right file extension. It works on Windows, Mac, Linux, Chromebooks, iPhone and Android.
Fixed-Width Text to CSV: Splitting Columns by Position
Older systems and government files often use fixed-width records, where each field has a set number of characters. There are no separators; the position defines the column.
How to convert
Provide the column widths or break positions, and the converter slices each line and trims padding. Check that the lines are the same length and that the widths match the file's specification.
For the reverse, see CSV to fixed-width text.
Frequently Asked Questions
Questions about Fixed-Width Text to CSV