.sgf SGF record

Text & source code

MIME typeapplication/x-go-sgf
DescriptionSGF record
AcronymSGF – Smart Game Format
CategoryText & source code
Signature (magic bytes)28 3B 46 46 5B 33 5D ((;FF[3])
28 3B 46 46 5B 34 5D ((;FF[4])
Based ontext/plain

Frequently asked questions

What is a .sgf file?

A .sgf file is a “SGF record” (MIME type application/x-go-sgf). SGF stands for Smart Game Format.

How do I open a .sgf file?

With any text editor – Notepad++, Visual Studio Code, or gedit and vim on Linux. The file contains readable text, possibly source code or configuration.

How can you tell a genuine .sgf file?

By the bytes at the start of the file, the signature (magic bytes): 28 3B 46 46 5B 33 5D ((;FF[3]) and 28 3B 46 46 5B 34 5D ((;FF[4]). On Linux and macOS, file --mime-type example.sgf checks the real type regardless of the extension.

Which format is .sgf based on?

Technically a .sgf file is a subtype of “Plain text document” (text/plain), so programs for that base format can often read it too.

Which MIME type belongs to .sgf?

The MIME type is application/x-go-sgf. In the Apache web server: AddType application/x-go-sgf .sgf; in nginx: types { application/x-go-sgf sgf; }.

Nearby entries