Skip to Content
Fetlar
Getting started

Output formats

Markdown, plain text, JSON and an HTML preview. Choose one with -t.

Choose the format with -t (or --to). The default is Markdown.

-t valueWhat you get
markdown or mdMarkdown. The default. Headings, lists, tables, links.
text or txtPlain text. Tables use tabs between cells.
jsonThe whole document as typed blocks. See JSON output schema.
htmlOne self-contained preview page. Text is escaped, there are no scripts, and long tables are cut.
docx or xlsxA Word or Excel file of what was read. Needs -o. See Export to Word and Excel.

Markdown

fetlar budget-v1.xlsx
## Budget 2027

| Item | Amount |
|---|---|
| Salaries | 120,000.00 |
| Rent | 125,000.00 |
| Growth | 15% |
| Date | 01/03/2026 |
| Total | 245,000.00 |

Each Excel sheet starts with ## and the sheet name. Slides and sheets are separated by ---.

Tables are pipe tables. Right-to-left tables are written as HTML tables, because a pipe table cannot say "right to left". Change this with --md-tables pipe or --md-tables html.

Text

fetlar budget-v1.xlsx -t text

Pages are separated by a form feed character, which a terminal does not show.

JSON

fetlar contract-v1.docx -t json

Add --compact for a single line. The structure is described in JSON output schema.

HTML preview

fetlar budget-v1.xlsx -t html -o preview.html

The page has a strict content security policy and no scripts. It is safe to open in a browser.

Cleaning text for AI

--normalize llm removes Arabic diacritics, tatweel and invisible characters. The text stays correct and readable. --normalize search also folds letter variants and digits, and is meant for search indexes only. Neither changes the structure.

Writing to a file

Add -o FILE. With several inputs, -o is the folder to write into. See Many files at once.

On this page