Fixed-Width Text File Parser
Turn bank, payroll and mainframe flat files with no separators into clean columns by clicking where each field starts, then export to Excel.
Berjalan di browser Anda. File Anda tidak pernah keluar dari perangkat. Lihat cara memeriksa
…
Cara melakukannya
- 1Open the file
Drop the text file on Open fixed-width file, or paste text, and check the Encoding.
- 2Trim lines
Set Skip lines at the top and bottom, or keep one record type by position, length and value.
- 3Set breaks
Press Detect breaks from blank columns, then tap the ruler to add or remove breaks.
- 4Describe fields
Name each field and choose Text, Number, Signed zoned decimal, Date or Skip, with implied decimals or date layout.
- 5Save the layout
Type a Layout name and press Save in browser or Layout JSON.
- 6Export
Check the Result table and press XLSX or CSV.
Tentang alat ini
Many systems still exchange data as fixed-width text: every field has a set number of characters and there is no comma or tab between them. Bank statement downloads, payroll and pension interfaces, insurance claim files, government returns and anything that started life on an IBM mainframe use this layout because it is simple for COBOL programs. Opening such a file in Excel gives one long column, and the import wizard forgets your column positions next month. This parser shows the first lines of the file under a character ruler. You tap between two characters to add a column break, tap the red line again to remove it, or let the tool find breaks where every line has a blank column. Each field then gets a name and a type, and the preview table updates immediately. Layouts are saved in your browser or as a small JSON file, so the next file of the same kind takes one click.
Field types
Text fields are trimmed. Number fields accept thousands separators, a trailing minus, a leading minus, brackets and a CR suffix for credits, and apply implied decimals when the file stores 1250 meaning 12.50. Signed zoned decimal is the COBOL PIC S9 format where the last character carries both the last digit and the sign: an opening curly bracket and the letters A to I stand for plus 0 to 9, a closing curly bracket and J to R for minus 0 to 9. Date fields understand YYYYMMDD, DDMMYYYY, MMDDYYYY, YYMMDD and DDMMYY and write ISO dates; all zeros stay as they are. Skip drops a filler field from the output.
Headers, trailers and record types
Many flat files start with a header line and end with a trailer that counts the records. Skip lines at the top and bottom removes them. Files that mix record types, such as H for header, D for detail and T for trailer, can be filtered by the characters at a given position, so only the detail lines become rows. Skipped lines are shown faded in the ruler, which makes the effect easy to check.
Encodings and record length
Files are decoded as UTF-8, Windows-1252 or EBCDIC code page 037, the encoding of US and Canadian IBM mainframes, and the tool guesses which one by looking at the bytes. Mainframe extracts often have no line breaks at all; set the record length, for example 80 or 120, and the text is cut into records of that size.
Limits
Packed decimal fields (COMP-3) are binary and cannot be shown as characters; ask for the extract with display numbers or unpack them first. Multi-byte UTF-8 characters count as one position, so a file that pads by bytes rather than characters may shift after an accented letter. Only the first 40 lines are drawn on the ruler, while every line is converted.
Contoh perhitungan
The sample bank file has a title line, an H header, five D detail lines and a T trailer. The saved layout keeps only lines starting with D and splits them at 1, 14, 22, 46 and 55. The amount 00001250} is a zoned number with 2 decimals whose last character means minus 0, so it becomes -12.50, 00245000 followed by an opening bracket becomes 24500.00 for the salary, 00008999J becomes -899.91 and 00000499E becomes 49.95. The balance column 0000984300 with 2 implied decimals becomes 9843.00, and 20261002 becomes 2026-10-02.
Fakta singkat
- Kategori: Pengembang & data
- Berfungsi di browser Anda, tanpa daftar, tanpa unggah.
- Masukan Anda tetap di perangkat Anda.
- Tersedia dalam bahasa Inggris.
- Konten terakhir ditinjau:
- Sumber resmi: IBM Enterprise COBOL: zoned decimal items
Pertanyaan yang sering diajukan
Is the file uploaded?
No. The file is read into the page and converted in memory; bank and payroll data never leaves your device.
How do I remove a break?
Tap the red line on the ruler, or delete the number from the Break positions list. Undo restores it.
What is a signed zoned decimal?
A COBOL number where the last digit is replaced by a letter or bracket that also carries the sign, so 1250} means minus 125.0 before decimals are applied.
My file is one long line. What now?
Mainframe extracts often have fixed-length records without line breaks. Enter the record length from the file specification and the lines appear.
Can I reuse a layout?
Yes. Name it and press Save in browser, or download the layout JSON and open it on another computer.
Which encodings are supported?
UTF-8, Windows-1252 (also used for Latin-1 files) and EBCDIC code page 037. Other EBCDIC national code pages are not included.
