KiCad Netlist Exporter
Turn an Ohmforge schematic into a KiCad netlist (.net)
How it works
Export an Ohmforge schematic as a KiCad S-expression netlist with components, footprints, typed pins and nets, ready to import into the KiCad PCB editor.
- Resolves nets with the same connectivity as the Ohmforge workspace (wires, T-junctions, net labels, ground).
- Writes KiCad's S-expression netlist, export version "E": a design header, one comp per component (ref, value, optional footprint, libsource, sheetpath, a stable tstamps UUID derived from project name and reference), one libpart per symbol kind with numbered, typed pins, and one net per resolved net with its nodes (ref, pin, pinfunction, pintype).
- Ground becomes the net GND and labelled nets keep their label; other nets are named Net-(REF-PIN) after their first node, or unconnected-(REF-PIN) for a single pin. Codes are assigned after sorting by name.
- Pin numbers: two-terminal parts 1/2 in drawing order, diodes and LEDs K = 1 and A = 2, transistors B/C/E and G/D/S = 1/2/3, the 555 timer in DIP-8 order, other symbols in their pin order. Pin types come from the typed-pin ERC catalog.
- Strings are quoted with backslash escapes as in KiCad files. Ground symbols and net labels are not components; instruments are excluded unless requested.
Libraries are referenced as "ohmforge" and pin numbers follow the convention above; check that every footprint's pad numbers match these pins (especially transistors and ICs) before ordering boards.
Sources
Part of Ohmforge
-
Ohmforge Virtual electronics workbench
Draw a circuit, switch it on, and measure it with real-feeling bench instruments.
Related tools
- Schematic Electrical Rules Check (Typed Pins) – Check pin types on every net: output conflicts, undriven inputs, unpowered supply pins
- Schematic Connectivity Review – Find common schematic connection issues
- Ohmforge Gerber & Drill Viewer with DRC-lite – Gerber X2 and Excellon files in – board render, drill table, trace and clearance checks out.
Export an Ohmforge schematic as a KiCad netlist
Turn a saved Ohmforge project into a KiCad S-expression netlist with footprints, numbered and typed pins and named nets for the KiCad PCB editor.
What it is for
Ohmforge is good for drawing and simulating a circuit; laying out the circuit board happens in a PCB tool such as KiCad. KiCad Netlist Exporter bridges the two. Paste the contents of a saved .ohmforge.json project and it writes a KiCad netlist (.net): the S-expression file KiCad's PCB editor reads under File → Import → Netlist…. You get one component per part with its reference, value and footprint, the pins of each symbol kind with number and electrical type, and every net with the pins it connects.
Footprints come from a part property called footprint in KiCad's Library:Footprint form. In the Ohmforge workspace you type them in the export dialog and they are saved with the project; in a pasted project you can add them to a part's props yourself. Without a footprint a component is still exported, and the result tells you which ones still need one.
Worked example
Choose Battery, resistor and LED with footprints. The project has a 9 V battery BT1, a 470 Ω resistor R1 and a red LED D1, all three with footprints, plus a ground symbol. The summary reads "3 components and 3 nets written as a KiCad netlist." The nets table shows:
- 1, GND: BT1.2 (-), D1.1 (K)
- 2, Net-(BT1-+): BT1.1 (+), R1.1
- 3, Net-(D1-A): D1.2 (A), R1.2
The ground symbol is not a component; it names the net GND. The LED's cathode is pin 1 and its anode pin 2, the usual pad order of LED footprints. There are no warnings, and the download button saves LED-on-9-V.net.
Now choose Logic gates without footprints: two inverters and an AND gate. The result has 3 components and 5 nets, and a warning: "3 components have no footprint (U1, U2, U3); assign footprints before updating a PCB from this netlist." Four of the nets are single pins, named like unconnected-(U1-A), the way KiCad names nets with one pin.
How to read the result
The metrics show components, nets, components without a footprint and excluded instruments. The components table lists reference, value, footprint and symbol. In the nets table each node is reference.pin number, with the pin name in brackets where the symbol has one. The code block and the download contain the full file.
Pin numbers follow a fixed convention: two-terminal parts 1 and 2 in drawing order, diodes and LEDs K = 1 and A = 2, transistors B/C/E and G/D/S = 1/2/3, the 555 timer in DIP-8 order, other symbols in their pin order. Every node carries the pin's electrical type (passive, input, output, power_in, power_out, open_collector), taken from the same catalog as the typed-pin electrical rules check.
Tips and common mistakes
- Check that each footprint's pad numbers match these pin numbers before you order boards, especially for transistors, whose real pinouts vary between packages.
- Bench supplies, function generators and logic probes are instruments, not board parts, and are left out. Tick Include instruments to keep them, or add a connector in KiCad where they attach.
- Labelled nets keep their label, so name important nets in Ohmforge for readable names in KiCad.
- Each component gets a stable time stamp derived from the project name and reference. Keep both unchanged and a re-imported netlist stays linked to footprints you already placed.
- The symbol library is called "ohmforge". The PCB editor needs footprints, not symbols, so that name is informational.
FAQ
Can KiCad's schematic editor open this file?
No. A netlist describes connections for the PCB editor; it is not a schematic. Keep editing the circuit in Ohmforge and export again after changes.
Why does a net have a name like Net-(R1-Pad1)?
Nets without a label get KiCad-style names from their first pin. Add a net label in Ohmforge to choose the name yourself.
Is the netlist checked for wiring mistakes?
No. Run the Schematic Electrical Rules Check (Typed Pins) first; it uses the same pin types and finds output conflicts, undriven inputs and unpowered supply pins.
What are the limits?
Projects up to 200 KB with at most 200 parts and 200 wires. Footprint texts are cut at 200 characters.
Guide last updated:
For scripts and AI agents
- JSON API:
POST https://ohmforgekicadnetlist.usefulweb.app/api/v1/calculate(same calculation as this page) - Interface description: OpenAPI 3.1 · AI guide: llms.txt
- MCP server (Streamable HTTP):
https://ohmforgekicadnetlist.usefulweb.app/mcp· tool nameohmforge_kicad_netlist
Example request
curl -s -X POST https://ohmforgekicadnetlist.usefulweb.app/api/v1/calculate \
-H 'content-type: application/json' \
-d '{…see OpenAPI examples…}'