Reading files
How Fetlar reads Word, Excel, PowerPoint, old Excel, CSV, TSV and HTML, and what it leaves out.
Fetlar reads the file's own contents, so the text is exact. It does not draw the page and does not guess.
fetlar report.docx
fetlar budget.xlsx
fetlar deck.pptx
cat file.docx | fetlar -A - reads from standard input.
Word
.docx, .docm, .dotx, .dotm.
- Headings from heading styles and outline levels.
- Lists with their real numbers:
3.2.1,(b), Arabic letters. - Tables with merged cells, nested tables and right-to-left tables.
- Footnotes and endnotes, headers and footers (once), text boxes, content controls, tracked insertions, hyperlinks and equations.
- Charts as a data table from the chart's saved values.
Excel
.xlsx, .xlsm, .xltx, .xltm.
- One page per visible sheet. The heading is the sheet name.
- Values the way Excel shows them:
1,250.00,15%,01/03/2026. - Tables are split at blank rows. Title rows are split off.
- Text boxes on the sheet and charts as data.
Values come from what Excel saved in the file. A formula that was never calculated has no saved value, so its cell is empty.
PowerPoint
.pptx, .pptm, .potx, .potm, .ppsx, .ppsm.
- One page per visible slide. The heading is the slide title.
- Bullets and numbering, tables, grouped shapes in reading order, SmartArt and charts as data.
- Speaker notes are included. Leave them out with
--no-notes. - Slide numbers are left out. Add them with
--slide-numbers. - Slide master text is included once.
Old Excel (.xls)
Excel 97-2003 workbooks read like .xlsx: number formats, dates, hidden sheets, rows and columns. Excel 5 and 95 workbooks, and password-protected files, are refused.
CSV and TSV
.csv and .tsv.
- The separator is found from the content: comma, semicolon, tab or
|. - Quoted fields and line breaks inside fields work. Rows of different lengths work.
- UTF-8, UTF-16 (with a byte order mark), Windows-1256 and Windows-1252 text are read.
- Number columns are right-aligned in Markdown.
fetlar p1.csv| sku | item | price |
|---|---|---:|
| A1 | Paper | 4.50 |
| A2 | Pens | 1.20 |
| A3 | Ink | 19.00 |HTML
.html, .htm. Fetlar gives headings, paragraphs, nested lists, tables (with merged cells), links, preformatted text and line breaks. Scripts, styles, navigation and hidden elements are left out. dir and lang mark right-to-left text.
fetlar n.html# Notes
Hello world
- one
- twoHidden content
Fetlar leaves out what a reader of the file does not see:
- hidden text and text smaller than 2 pt,
- hidden sheets, rows and columns,
- hidden slides, and slide-number and date placeholders,
- deleted tracked changes and comments.
Add --hidden to include hidden slides, sheets, rows, columns and hidden Word text. Deleted tracked changes and comments stay out either way.
fetlar h.xlsx --hidden## Public
Open
Secret row
---
## Staff
SalariesUse --hidden only when you want to see what the author hid. It may show things the author did not mean to share.
Speaker notes
Notes are on by default. Use --no-notes to drop them. In JSON they are note blocks.
Big files, limits and time
- Excel:
--max-cells Nreads at most N non-empty cells. The default is 2,000,000. If the file has more, the rest is cut off and Fetlar says so in the output and on stderr. --timeout SECSgives up after that many seconds with exit code75. There is no limit by default.- Files over a safety limit (expanded size or number of parts) are refused with exit code
75. - Large workbooks are read one sheet per thread.
FETLAR_THREADS=1uses the least memory.
fetlar budget.xlsx --max-cells 3fetlar: warning: Sheet "Budget 2027": This workbook has more than 3 non-empty cells; the cells after that are not shown. Raise the cell limit to read them.See Limits and safety for all the limits.
What is refused
- Old
.docand.pptfiles. They are not supported yet. See Troubleshooting. - Password-protected files.
- Files that are not Office files, or are damaged beyond repair. Fetlar recovers damaged zip files from their local headers, as Word does.
Fetlar does no OCR. A page pasted into Word as a picture has no text for Fetlar to read.