# Is PGN split utility available anywhere?

A couple of places on the web mention a free utility called pgnsplit, that does the following: "A commandline tool to convert pgn-files including games with variation into pgn-files where each variation get its own game."

Sadly, all links to it seem dead. Does anyone know if it is possible to download it anywhere, or to find similar functionality in any other common chess database software?

Here is the author's page courtesy of archive.org. The zip file on that page includes the readme.

As of 2017.04.01, pgn-extract (version 17-38) does provide variation splitting functionality via its --splitvariants flag. So, if you want this in a Windows/Linux/Mac OS environment it is available. Disclosure: I am the author of pgn-extract.

• Welcome for joining. I've been using your software for long time, and it's great. – SmallChess Apr 1 '17 at 10:03
• I am glad you like it. – kentdjb Apr 2 '17 at 11:31
• thanks, I used it before, good to know about this new feature. – Joe Apr 14 '17 at 21:43

The only one I've found that will probably do what you want is PGN Extract. It's a command line tool, so hopefully you're comfortable with that. It has a Windows binary, but if you need it for Linux or Mac I hope you're comfortable with compiling from source.

Update

It appears PGN Extract will only separate unique games in a single PGN into multiple PGNs, not branches. Sadly PGN Split was one of a kind, and there doesn't appear to be a replacement. One of few programs that managed to disappear completely from the internet.

• thanks, I used it a long time ago. Does it do what I want out of the box, or are you saying I need to recompile and modify it? – Joe May 3 '13 at 14:23
• Do you know what command-line options will do what the asker wants? I found PGN Extract when searching for an answer to his question, but couldn't find the feature he's asking for in the documentation. – dfan May 3 '13 at 14:23
• @Joe From what I saw the option to separate files sounds exactly like what you want. – MDMoore313 May 3 '13 at 14:24
• @dfan the Separate Output Files (-E) looks likes it's it. – MDMoore313 May 3 '13 at 14:25
• -E seems to take the specified games and output them to multiple files, rather than to turn one game into many games (one for each variation), which is what @Joe is requesting. – dfan May 3 '13 at 14:40

This will do it.

https://www.cs.kent.ac.uk/people/staff/djb/pgn-extract/

I built it on mac--works great.

• Hi Kevin. Can you elaborate a bit please? The community discourages link only answers, as the link might become inactive. It would be great if you could elaborate on how the code meets the criteria of the original poster, maybe a few screenshots of it in action, maybe a little bit about how the code works? – user1108 Mar 23 '16 at 10:08
• PGN-extract is not the same thing as pgnsplit – Joe Mar 28 '16 at 2:29