http://woodgears.ca/gear_cutting/template.htm
This first Gear template can be used either on line or you can purchase a fuller more feature rich version for use on your PC. The output is to an HPGL format that can be used for direct printing .
One of the benefits of the paid for version is that it can export to DXF format
Gearotic
This software will provide templates for all manner of gears, ratchets and clock escapements along with the facility to adjust the profiles. Output as DXF files. This is not a free program but you can download a demo version to try it
http://www.emachineshop.com/machine-shop/Download/page100.html
eMachineShop is a Free 2D drawing package with a module for drawing gears, easy to use, you simply add the basic gear parameters and it draws the gear which can then be exported as a DXF file.
The program is free but unlike the first two programs it lacks the facility to see to the main gear and the pinion on-screen at the same time.
http://www.forestmoon.com/software/GearDXF/
Simple Free program , input gear parameters and then save as DXF.
CycloidalGearBuilder
This is a program to generate tooth profiles in an epicyclic form rather than the more generally used involute form. For a description of the difference see the following:-
Comparison Between Involute and Cycloidal Gears
The output from this program is in DXF format and can be viewed in a browser.