1. Home
  2. Spreadsheet & data tools
  3. Fixed-Width to CSV

Fixed-Width to CSV

Bank files, legacy system exports and text reports line up their columns with spaces instead of separators. Mark where each column starts and get a proper table.

Free, no sign-up. Runs in your browser: nothing is uploaded.

How to use Fixed-Width to CSV

  1. Drop the text file or paste it.
  2. Check the detected column breaks; click the ruler to add or remove one.
  3. Download CSV or Excel.

Features

  • Column breaks detected from shared blank runs
  • Click to add or remove breaks on a ruler
  • Or type the column widths
  • Skip header lines, trim spaces
  • Tabs expanded so columns line up

Supported formats

You can open

  • TXT
  • Pasted data

You get

  • CSV
  • XLSX
  • TSV

Private by design

Your files are opened and processed by your browser on this device. They are never uploaded to openWorkstand or anyone else, so the Fixed-Width to CSV is safe for contracts, IDs, photos and work documents. After you have used it once while online, it also works without an internet connection. How local processing works

Good to know

  • Very large files are limited by your device’s memory; on a phone, split huge files into smaller parts first.

Guide

Converting fixed-width text reports and mainframe exports into CSV

Before CSV became common, many systems wrote tables as fixed-width text: each column occupies the same character positions on every line, padded with spaces. Bank statements, payroll files, mainframe and ERP exports, government data releases and printed reports still use this format. It looks tidy on screen but is useless in a spreadsheet, where each line lands in a single cell. This tool cuts each line at the right positions and gives you a proper table.

Opening the file

Drop a .txt, .dat, .prn or similar file, or paste the text. The encoding is detected, including UTF-16 and older Windows code pages, and tab characters are expanded to the usual 8-character stops, so columns line up exactly as they do in a text editor.

Automatic column breaks

The tool looks for character positions that are blank on (almost) every line. Where a run of shared blanks ends and text begins, it places a column break. For typical reports this finds the columns immediately; the panel title shows how many columns resulted.

Adjusting breaks on the ruler

The first lines of the file are shown in a monospaced ruler with a scale above them, and every break is drawn as a vertical line. Click anywhere in the text to add a break at that position; click on an existing line to remove it. The table below updates at once, so you can see the effect of each change. “Detect again” restores the automatic suggestion.

Typing widths

If you know the record layout, for example from a file specification, type the column widths as a list, such as 10, 21, 12, 10, and apply them. The breaks are placed at the cumulative positions, which is exact and repeatable for files that follow the same layout every month.

Header and title lines

Reports often start with a title, a date or blank lines before the column headers. Use “Skip lines at the top” to ignore them. Switch “First line is a header” on when the first remaining line contains the column names.

Trimming

Fixed-width values are padded with spaces, so trimming is on by default. Switch it off when leading spaces carry meaning, as in some account or indentation-based codes.

Values as written

Numbers keep their formatting, such as 1,204.50 or -88.10, and codes keep their leading zeros. Excel output turns plain numbers and ISO dates into real values while leaving codes as text.

Files that follow a specification

Banks, payroll providers and public agencies usually publish a record layout listing each field’s start position and length. Convert the lengths into the width list, check the first lines on the ruler, and save the widths somewhere: next month’s file will need exactly the same list.

Very long lines

Wide records with hundreds of characters scroll sideways in the ruler. Breaks can be set anywhere along the line; the table preview then shows every resulting column.

Privacy

Bank and payroll files are converted in your browser and never uploaded.

For tab-separated text, use TSV to CSV. For tables inside PDF reports, try PDF to CSV. To change the separator of an existing CSV, use Change CSV Delimiter.

Checked against the current version of the Fixed-Width to CSV on .

Troubleshooting

The file does not open

Check that it is one of the supported formats above and opens in another app. Damaged files and password-protected PDFs cannot be read until they are repaired or unlocked.

It is slow or stops on a very large file

Everything runs on your device, so speed depends on its memory. Close other tabs, use a computer rather than a phone, or split the file into smaller parts first.

The download did not start

Look for your browser’s download bar or icon. Some browsers ask once before a site may download files; allow it and click the button again.

Frequently asked questions

The automatic breaks split a column in two. How do I fix that?

Click on the unwanted break line in the ruler to remove it. Automatic detection looks for blanks shared by nearly all lines, so a column whose values are all short can look like two columns; one click merges them again.

My file has a title and a date above the table. What do I do?

Set “Skip lines at the top” to the number of lines before the column headers. The breaks are then detected from the table itself, not from the title lines.

What if a value is wider than its column?

Fixed-width files never overlap columns by design. If a report has misaligned rows, place the break where most rows agree and check the preview; the tool cuts exactly at the positions you set.

Should spaces be trimmed?

Usually yes, since fixed-width files pad values with spaces. Switch trimming off if leading spaces carry meaning, as in some account codes.

Keep working with the result

After you download, choose “Save to Workstand” to keep the result in a folder on your computer, attach it to a project and create a follow-up task. It is saved by your browser, not uploaded.