Apps Part of Ohmforge

KiCad Netlist Importer

Turn a KiCad netlist (.net) into an Ohmforge schematic you can simulate

Paste a netlist exported from KiCad (File → Export → Netlist…, format KiCad) or from Ohmforge. At most 500 components and 5000 nets.

Try an example: ·

More about this tool

How it works

Import a KiCad S-expression netlist into an Ohmforge project: standard resistors, capacitors, inductors, diodes, LEDs, transistors, batteries, switches and 555 timers become simulation parts connected by net labels; no-connect flags and pin types come along.

  • Reads the file with a general S-expression parser (lists, bare atoms, double-quoted strings with backslash escapes) that reports the line and column of syntax errors and limits size, nesting depth and element count, then reads the documented netlist sections: design (title), components (ref, value, footprint, libsource), libparts (pin numbers, names, types) and nets (nodes with ref, pin, pinfunction, pintype).
  • Components from Ohmforge's own export (library "ohmforge") map back exactly: the part kind comes from the libsource, pins from Ohmforge's pin numbers, and parameters from the value text (each candidate setting is checked by regenerating the value text). Parameters that the value text does not contain return to their defaults.
  • KiCad standard symbols map by symbol name: R, R_Small, R_US → resistor; R_POT → potentiometer (pin 2 = wiper); C, C_Polarized/CP → capacitor; L → inductor; D, D_Zener, D_Schottky, LED → diodes; Q_NPN_*, Q_PNP_*, Q_NMOS_*, Q_PMOS_* → transistors (pins matched by their B/C/E and G/D/S names); Battery, Battery_Cell, Fuse, SW_Push, SW_SPST; NE555-family timers by pin names (TR, Q, R, CV aliases) or DIP-8 numbers. Two-pin parts whose reference starts with R, C or L are accepted as a last resort. Everything else (connectors, microcontrollers, regulators …) is left out and listed; its nets stay labelled on the imported parts.
  • A pin type ending in "+no_connect" (KiCad's no-connect flag) becomes a no-connect flag on that pin. For Ohmforge components a node pin type that differs from the catalog type becomes a per-pin type override in the project (field erc, version 1). KiCad 10's "NAME_NUMBER" pin functions are understood.
  • Placement: parts in a grid; each connected pin gets a short wire and a net label with the KiCad net name, the net GND becomes ground symbols, and single-pin "unconnected-…" nets stay open. Exporting the imported project again reproduces the same netlist text for Ohmforge exports (verified for all built-in templates).

Simulation parts are idealised library models: check every mapped part's parameters (model, voltage, value) and pin order before trusting simulation results. Hierarchical sheets are flattened by KiCad's export; KiCad's power flags are not part of netlists, so add Ohmforge power flags or sources where the board is supplied.

Sources

Part of Ohmforge

  • Ohmforge Virtual electronics workbench

    Draw a circuit, switch it on, and measure it with real-feeling bench instruments.

    Open Ohmforge

Related tools

Import a KiCad netlist into Ohmforge

Turn a KiCad netlist (.net) into an Ohmforge schematic you can simulate, and see which parts were mapped, left out or flagged as not connected.

What it is for

You drew a circuit in KiCad and want to try it in a simulator, or you exported a netlist from Ohmforge and want the circuit back. KiCad Netlist Importer reads the netlist file KiCad writes under File → Export → Netlist… (format KiCad) and builds an Ohmforge project from it. Paste the text and download the .ohmforge.json file, or use File → Import KiCad netlist… in Ohmforge itself.

Only parts with a simulation model can come along: resistors, potentiometers, capacitors, inductors, diodes, zeners, Schottky diodes, LEDs, bipolar and MOSFET transistors, batteries, fuses, push buttons, switches and 555 timers. Connectors, microcontrollers, regulators and anything else are listed and left out. The netlist has no drawing positions, so parts are placed in a grid and joined by net labels with the KiCad net names.

Worked example

Choose 555 blinker from KiCad (Device and Timer symbols). It is a netlist in KiCad 9's layout with a NE555P timer, three resistors, a polarised capacitor, an LED and a two-pin connector J1. The summary reads "6 components imported, 1 left out; 7 nets in the netlist." The components table shows C1 → capacitor, D1 → led, R1, R2, R3 → resistor and U1 → timer555, all matched by KiCad symbol; J1 (Connector_Generic:Conn_01x02) is Left out.

Two warnings explain the rest: J1 has no simulation part (its nets stay labelled on the other parts), and six components were matched by symbol, so you should check pin order and parameters. The 555's pins were found by their KiCad names: TR became TRIG, Q became OUT, R became RESET. Its CV pin carries KiCad's no-connect mark, so the project gets a no-connect flag there; the metrics show 1 no-connect pin. R2's value 4k7 is kept as written.

Now choose Round trip of an Ohmforge export. This netlist came from Ohmforge's own exporter: three components are imported as Ohmforge export (exact) with no warnings, the power flags are gone (netlists never contain them) and exporting the result again gives the same text.

How to read the result

The metrics count imported and left-out components, the nets in the file, pins with a no-connect mark and pin type overrides. The components table shows how each reference was matched: exact (Ohmforge's library), by KiCad symbol name, by reference designator (an R, C or L with two pins and an unknown symbol) or left out. The download is the project; open it in Ohmforge.

The net named GND becomes ground symbols. Single-pin nets called unconnected-… stay open, so the connectivity review will point at them unless they carry a no-connect flag.

Tips and common mistakes

  • In the 555 example J1 supplied +5 V. Without it the electrical rules check reports U1.VCC as unpowered: add a power flag or a battery on +5V before simulating.
  • Values like 100nF or 4k7 are read as numbers; text such as "100n/50V" keeps only the first part, with a warning.
  • Transistor pins are matched by the B, C, E or G, D, S names, so KiCad's different pin orders all work. Still compare the model: an unknown type number falls back to the default model.
  • Netlists from Ohmforge also carry a field named Ohmforge.Params with settings the value text does not show, such as a closed switch or a battery's internal resistance.
  • Hierarchical sheets are fine: KiCad flattens them when it writes the netlist.

FAQ

Can I open a .kicad_sch file directly?

No. The importer reads netlists only. It tells you so when you paste a schematic or KiCad's XML netlist.

Why are my parts in a grid with labels instead of wires?

A netlist only says which pins are connected, not where symbols sit. Net labels with the same name are connected, so the circuit is complete; tidy the drawing in Ohmforge if you like.

Is anything uploaded when I use the app?

No. In Ohmforge the file is read and converted on your device. The tool page and API run the same engine on the server.

What are the limits?

At most 500 components, 5000 nets and 20 000 pin connections per file.

Guide last updated:

For scripts and AI agents

  • JSON API: POST https://ohmforgekicadnetlistimport.usefulweb.app/api/v1/calculate (same calculation as this page)
  • Interface description: OpenAPI 3.1 · AI guide: llms.txt
  • MCP server (Streamable HTTP): https://ohmforgekicadnetlistimport.usefulweb.app/mcp · tool name ohmforge_kicad_netlist_import
Example request
curl -s -X POST https://ohmforgekicadnetlistimport.usefulweb.app/api/v1/calculate \
  -H 'content-type: application/json' \
  -d '{…see OpenAPI examples…}'
Feedback · ideas & bug reports welcome