.fb2 FictionBook document

Other formats

MIME typeapplication/x-fictionbook+xml
DescriptionFictionBook document
CategoryOther formats
Signature (magic bytes)3C 46 69 63 74 69 6F 6E 42 6F 6F 6B (<FictionBook)
Based onapplication/xml

Frequently asked questions

What is a .fb2 file?

A .fb2 file is a “FictionBook document” (MIME type application/x-fictionbook+xml).

How do I open a .fb2 file?

With the program that created the file. On Linux, xdg-mime query default with the MIME type shows the default application, and xdg-open opens the file with it.

How can you tell a genuine .fb2 file?

By the bytes at the start of the file, the signature (magic bytes): 3C 46 69 63 74 69 6F 6E 42 6F 6F 6B (<FictionBook). On Linux and macOS, file --mime-type example.fb2 checks the real type regardless of the extension.

Which format is .fb2 based on?

Technically a .fb2 file is a subtype of “XML document” (application/xml), so programs for that base format can often read it too.

Which MIME type belongs to .fb2?

The MIME type is application/x-fictionbook+xml. In the Apache web server: AddType application/x-fictionbook+xml .fb2; in nginx: types { application/x-fictionbook+xml fb2; }.

Nearby entries