FastFEC is a command-line tool and library for parsing .fec files quickly written in C.

Showing all 2 rows
2.02,fecfile,3,dec,ccyymmdd,^,f3xn,C00713161,Entertainment 720,g385236r,00090,00051


Upload a .fec file to parse it and download a zip of .csv files entirely in-browser using WebAssembly.

View demo ≫


View instructions:


Python library

FastFEC is available as an installable Python library. pip install fastfec to get started. Learn more here.

Command-line usage

Once FastFEC has been installed and is in your path, you can run the program by calling fastfec in your terminal:

Usage: fastfec [flags] <id, file, or url> [output directory=output] [override id]

The CLI will download or read from disk the specified filing and then write output CSVs for each form type in the output directory. The paths of the outputted files are:

You can also pipe the output of another command in by following this usage:

[some command] | fastfec [flags] <id> [output directory=output]


The CLI supports the following flags:

The short form of flags can be combined, e.g. -is would include filing IDs and suppress output.


fastfec -s 13360 fastfec_output/

Time benchmarks

Using massive 1464847.fec (8.4gb) on an M1 MacBook Air

Presentation slides

We presented FastFEC at NICAR 2022. You can view the slides here.

Source code