How to tell which version of KiCad a .kicad_pcbfile is made at?

How can I figure out which version of KiCad a .kicad_pcb was made at.
When I open a .kicad_pcb, the first line says:

(kicad_pcb (version 20211014) (generator pcbnew)

In another .kicad_pcb, which I know its Version 8.07 the first lines say:

(kicad_pcb
	(version 20240108)
	(generator "pcbnew")
	(generator_version "8.0")

How can I translate “version 20240108” into the actual version of KiCad release titles?

(What I want to do is to understand what KiCad version someone used in a tutorial to run a simulation that seems non-compatible with other KiCad version)

Most likely version 6.
My logic, which I am about 90% sure is right: add one year and whichever major version is released at that time, so in 2022 it was v6.
Note that this only works or v6 and later because that’s when yearly releases started. For older dates check the download archives on kicad website to roughly match the date in file header + few months, first major release after that will likely be right version.

1 Like

The version string in the board file (version 20211014) shows that the last update to the board file format (e.g., adding/changing how tokens in there are processed) was on October 14, 2021. All the values for these are listed in the code here: pcbnew/pcb_io/kicad_sexpr/pcb_io_kicad_sexpr.h · master · KiCad / KiCad Source Code / kicad · GitLab

You can find the date code you are interested in, and see which version it maps to from that. In this case, 20211014 is the last entry in the 6.0 development block, which means this was generated by one of the 6.0 KiCad versions.

This file should be readable by any KiCad version that is 6.0 or newer.

2 Likes