img2mod Image Converter for Kicad

This utility converts an image into a Kicad .kicad_mod file for adding to a printed circuit board (PCB) layout. It is available both here as a web "service" as well as a downloadable python script.

Note! -- This tool has been upgraded to support only the new .kicad_mod file format, which uses an s-expression type of file format that is the future of kicad file formats.

Details: The image will be converted to grayscale, but you might want to do the conversion yourself to control the process. If the image has transparency, it will be removed by layering the image over a black background. Module name is the name of the module inside the .kicad_mod file. Scale factor influences how large the output module is, by specifying the size of each pixel (units are mm). If you want to invert the image, check the "invert" box. The "preview" option displays the size and converted image, uncheck to download the .kicad_mod file directly.

Conversion settings:
Module name:
Conversion threshold:
Scale factor:
Invert image?
Choose one of the following:

How does it work?

This converter does a very basic conversion at the pixel-level. Adjacent pixels or filled areas are handled as individual pixels, and not merged or anything like that (could be a future enhancement). Each output pixel is a filled polygon with five points (repeated start/end point).

Standalone version

This tool is also available as a standalone python script. To run this script, use something like this:

./ input.png output.kicad_mod LOGO 200
More details are available in the included README file.


This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.


This tool was written by Matthew Beckler of Wayne and Layne, LLC.
Wayne and Layne, LLC logo
Questions? Comments? Please let us know what you think of this tool. Contact us.