Text

Runs in your browser. No file uploads for processing.

Convert Fixed-Width Text to CSV (No Upload)

Split fixed-width text by character positions and export CSV without uploading the source.

Loading tool...

How to convert fixed-width text to CSV

  1. Paste records or choose a local text file

    Each source line is one record. Choose a UTF-8 file up to 2 MiB, or paste the rows. No file is uploaded.

  2. Enter the end positions

    Cuts 4, 8, 12 read positions 1–4, 5–8 and 9–12. For 0001Moka0042 this produces 0001, Moka and 0042. Cuts use Unicode code points, so they do not depend on the font or byte count.

  3. Check the preview and export

    Short rows are flagged, and extra text past the last cut is kept in an overflow column. Choose protected CSV or raw CSV for literal output. The first source line remains a data row; no header is added.

Use cases

  • Convert legacy inventory, billing, bank export or mainframe records with documented character widths.
  • Check a text export for short and overlong records before passing it to another tool.

Limits and privacy

  • UTF-8 only, up to 2 MiB, 20,000 records, 32 fields and 200,000 cells. Positions count Unicode code points, not UTF-8 bytes, grapheme clusters, or terminal widths. Tabs are one code point, not tab stops.
  • No automatic width guessing, multi-line records, type inference, or header insertion. Short fields are not padded; optional trimming affects only ordinary spaces in the extracted fields.

The tool processes inputs in your browser. Account features and usage analytics are separate.

Frequently asked questions

What if my data already uses commas or tabs as delimiters?

Use CSV Column Extractor for delimited data. This converter is for records where each value is found at a fixed character position.

How do I convert a fixed-width text file to CSV?

Enter each field’s last character position, preview the split, and download the CSV. Use the file format’s own cut positions instead of splitting on spaces.

Can I use a byte-based record layout?

The cuts count Unicode code points, not bytes. They coincide for ASCII but can differ for non-ASCII text. Tabs count as one code point and combining characters can span a cut.

What happens when a line is too long or too short?

Short records are flagged and missing parts become empty fields. If any record has extra characters, the extra text is kept in a separate last column for every record.

Are my source text or files uploaded?

No. Text decoding, preview and CSV generation run in the browser without uploading the selected file or its output.

Does this preserve leading zeros?

Yes, in the CSV bytes. If a spreadsheet still converts identifiers into numbers, import the relevant columns as text.

What does spreadsheet formula protection change?

It adds a leading apostrophe to cells that resemble formulas or start with a tab. Raw CSV omits that change and preserves the extracted text. Only open raw CSV in a spreadsheet if you trust the source.

Related tools