lichess.org
Donate

how do i create a .pgn file?

<Comment deleted by user>
@N-juguna , you did the right thing. you don't need to 'convert'. If you are on windows, show file extensions -> rename and change the extension to .pgn. A warning will come, confirm it to change the extension. A pgn file has nothing special, only text so you can open it with word/notepad.
PGNs are text files, so they'll look just like a TXT. When you open them in a program, it reads it and offers functionality. So it's all good. But I would use a text editor, like Notepad or Notepad++, not a word processor. Hope that helps.
On Windows 10, go to "File Explorer Options" (in older versions I think this is called "Folder Options") and in the "View" tab, untick "Hide extensions for known file types". Doing this will show the file name with the extension ".txt", rename the file and select the ".txt" portion and change it to ".pgn". Windows will warn you that changing the extension might make the file unreadable or whatever, click Yes or Ok and you'll have a .pgn file rather than .txt.
<Comment deleted by user>
@N-juguna There MUST be a way to rename AND to see file extensions(I think file extensions are shown by default in linux).
Just change the extension to pgn and that's it.
Edit: That doesn't look like a pgn! no headers! probably that's why it's not named as a .pgn
<Comment deleted by user>
Even if the pgns are incomplete, it wouldn't do anything with the conversion. just change the extension @N-juguna
I'll soon give some good websites where you can build your pgn database.
You will need to work on it by hand if you want to salvage it. The moves need a dot after each number, " mate" (note the space) needs to become "#", and headers need to be provided. Example:

[Site "Columbia, SC, USA"]
[Date "1979.??.??"]
[Result "0-1"]
[White "Jerry Bookter"]
[Black "Bill Floyd"]
[PlyCount "22"]

1.e4 e5 2.Nf3 Nc6 3.Bb5 d5 4.Bxc6+ (4.exd5) bxc6 5.b3?! dxe4 6.Nxe5? Qg5 7.Nxc6 Qxg2 8.Rf1 Bg4! 9.f3 exf3 10.Rf2 Qg1+ 11.Rf1 f2#

Just paste that into a blank text file and save with a .pgn extension. If you need to use a .txt extension, your program might still allow you to import TXTs into the database. I know Scid does. But I'm using that on Windows.
The PGN can also be found at chessgames dot com:

[Event "Columbia SC"]
[Site "Columbia, SC USA"]
[Date "1979.??.??"]
[EventDate "?"]
[Round "?"]
[Result "0-1"]
[White "Jerry Bookter"]
[Black "Bill Floyd"]
[ECO "C60"]
[WhiteElo "?"]
[BlackElo "?"]
[PlyCount "22"]

1. e4 e5 2. Nf3 Nc6 3. Bb5 d5 4. Bxc6+ bxc6 5. b3 dxe4 6. Nxe5
Qg5 7. Nxc6 Qxg2 8. Rf1 Bg4 9. f3 exf3 10. Rf2 Qg1+ 11. Rf1
f2# 0-1

This topic has been archived and can no longer be replied to.