How to use Fixed-Width File to CSV Parser
- Paste the fixed-width records.
- Enter name | start | width for each column, using positions starting at 1.
- Choose trimming and blank-line handling.
- Inspect the extracted cells and unmapped-content report before downloading CSV.
Example: Fixed-Width File to CSV Parser
Extract identifiers, names and quantities.
Options
- Column specification
- Each row gives name | start | width. Start positions are 1-based character positions; width is the number of characters taken. Byte positions from a legacy file format are not interchangeable.
- Trim and blank lines
- Trimming removes surrounding whitespace inside extracted cells. The blank-line choice keeps or drops empty records. Review reported text outside the specified columns.
Supported inputs and limits
Where your input is processed
This tool processes your input in this browser. Your text and files are not uploaded to UseFreeTools. Check this tool's limits for anything it may save on your device.
A fixed-width layout needs the source specification
A visible gap does not prove a field boundary. Use the actual start and width for each field, especially when values contain spaces. Overlapping or invalid specifications are refused. The output keeps values as text, so identifiers with leading zeroes remain identifiers.
Character positions can differ from byte positions
The tool slices decoded text by the supported character convention. A multibyte encoded source described by byte offsets can have different boundaries. Decode the file deliberately and test a record containing non-ASCII characters before relying on a legacy byte-based layout.
Questions about Fixed-Width File to CSV Parser
Do column positions refer to bytes?
No. They refer to Unicode code points. A multibyte character still occupies one code-point position, while a combining sequence can occupy several.
What happens when a record is too short?
A nonblank record that cannot cover the selected ranges is refused with its line number. Check the specification or source record.
Can I leave gaps between columns?
Yes, provided ranges do not overlap. Unmapped content is reported for review instead of being presented as extracted data.