Developers
Office files in, clean Markdown out.
Turn a folder of documents into Markdown or JSON for search and language model pipelines.
The problem
- Your pipeline reads text, and your documents are Word, Excel and PowerPoint.
- Tables and lists flatten into noise.
- One bad file should not stop the batch.
How Fetlar does it
Convert a folder
Files are converted in parallel, largest first. One bad file does not stop the others. --normalize llm removes Arabic diacritics, tatweel and invisible characters.
$ fetlar docs/ -o out/ --normalize llm out/budget-v1.md out/contract-v1.md out/supply-ar.md
Use the exit code
Each failure is on stderr with the file’s path.
$ fetlar docs/ -o out/ || echo "some files failed, see stderr"
Chunk by structure
JSON gives typed blocks with heading levels, so you can split on headings.
$ fetlar contract-v1.docx -t json --compact {"kind":"docx","pages":[{"page":1,"title":null,"blocks":[{"type":"heading","text":"Supply agreement","rtl":false,"level":1,"page":1},{"type":"heading","text":"4.2 Payment terms","rtl":false,"level":2,"page":1}]}]}
A folder is not searched recursively. CSV, TSV and HTML files must be named on the command line.
What you get
Structure kept
Headings, lists and tables arrive as headings, lists and tables.
All cores
A folder is converted in parallel.
Nothing else to run
One program, offline. No services to set up.
Try it on your own files.
Free to evaluate for 30 days. Business use needs a license.