Skip to Content
Fetlar
Using Fetlar

Export to Word and Excel

Save what Fetlar read from any file as a clean Word document or an Excel workbook.

-t docx and -t xlsx read any file Fetlar opens (Word, Excel, PowerPoint, CSV, HTML) and write what it saw as a new Word or Excel file. You must give -o.

fetlar budget-v1.xlsx -t docx -o budget.docx
fetlar report.docx -t xlsx -o report.xlsx
fetlar reports/ -t docx -o out/

With several files or a folder, -o is a folder and each input gets one file. A file is never written over the one it was read from.

The Word file

It has real Word structure, not typed-in numbers:

  • headings (levels 1 to 6) and paragraphs with their links (only http, https and mailto links are kept),
  • real lists: bullets, 1. 2. 3., a. b. c., i. ii., Arabic letters and digits, 1.1.1 outline numbers, lists that carry on or start at (c), and nested levels,
  • tables with a shaded header row, number columns aligned to the trailing edge and right-to-left tables,
  • speaker notes as quotes, headers and footers, and the direction of every paragraph.

Each sheet or slide starts on a new page. Spreadsheets and slides are landscape. The same input always gives the same bytes.

Not kept, because the reader's model does not carry them: fonts, colors and sizes, merged cells (they come out as the cells the reader saw), pictures, and where a footnote was cited. Footnotes become paragraphs that start with their number. A table wider than Word's 63 columns is split into several.

The Excel file

One sheet for each sheet, slide or document. Tables become rows. Other text goes one cell each.

Cells whose text is a plain number are written as numbers. Anything else (1,250.50, 12%, 007, dates) stays the text that was read, because the reader's model has no number formats.

When to use it

  • Turn a CSV or an HTML page into a tidy Word file.
  • Turn a PowerPoint into a Word outline.
  • Turn a Word file with tables into a workbook.

To keep colors, fonts and merged cells, do not export. Edit the original file instead.

On this page