14

While downloading some games I came across some files in ChessBase format:

  • .cbv
  • .cbf
  • .cbh

I would like to know if is is possible to convert these files to .pgn format without using proprietary software and how it can be made.

PhishMaster
  • 32,477
  • 4
  • 105
  • 177
lodebari
  • 3,363
  • 2
  • 22
  • 45

4 Answers4

6

Well since the protocols creating cbv, cbf and cbh formats are not made publicly available, one will certainly not find any such conversion tool (i.e. unclear how they are encoded to reverse them to pgn).

Other reason maybe that the difference between all these formats is just due to an "incremental encoding" that is being used, which means that for it to be possible to go backward, to a pgn format, only the chessbase engine can do so!

Until a way around this is found, you can use playchess free program or easier the chessbase light (which is free), where using

choose file->new database and create pgn files

will allow you to obtain pgn formats again.

Ellie
  • 11,988
  • 3
  • 41
  • 65
5

Here is a simple way to do exactly what you want:

  1. Open the .cbv file in ChessBase Reader
  2. Select all the files you would like to convert to .pgn (Ctrl-A to select all files)
  3. Go to File at the top left corner and press Selection To Text file
  4. You will receive a popup where you should select PGN under Format and press OK
  5. Save the .pgn in your designated area and that's it!

You now have a .pgn database!

Lord Powder
  • 59
  • 1
  • 2
  • This works! It was a bit hard to find: I opened my Chessbase 14, then I located my database and selected it: this showed the game list. Then I selected Ctrl+a all games, then right click and finally Output->Selection To Txt file. – Danijel Jan 08 '24 at 12:38
5

I wrote a cli tool to extract .cbv archives. And you can use scidb to open the resulting .cbh file. Scidb will eventually support opening .cbv archives directly.

antoyo
  • 452
  • 3
  • 8
  • Reading about it - sounds like it does not actually convert resulting CBH to PGN, does it? Just wanted to double check since it might be misleading given the main question. – Joe Oct 08 '18 at 17:13
  • You indeed need to use the both tools I mentionned. uncbv is used to convert the .cbv to the files contained in the archive (which could be .pgn but is usually .cbh with many other files). Then, you can use scidb to convert the .cbh file to .pgn. – antoyo Oct 10 '18 at 15:00
  • It works for me like a charm, thanks for the cli tool ! – Olórin Jan 17 '20 at 19:09
2

There is now a CBH to PGN app for Android (only handles CBH files, not cbv) - https://play.google.com/store/apps/details?id=org.chess.cb&hl=en

I personally would like to see this available as a command line utility on windows.

Joe
  • 4,301
  • 2
  • 24
  • 42