ComicInfo.xml is a small text file stored inside a CBZ that describes the book: its series, issue or volume number, title, creators, summary and, for manga, its reading direction. Library servers like Komga and Kavita read it to fill in their book pages, and reader apps use it to sort the book and open it the right way. You don't need it: without one, your app works from folder and file names instead.

Where does ComicInfo.xml come from?
The file started with ComicRack, a Windows comic manager that wrote its metadata straight into the archives. The app aged, the format stuck, and most digital comics tools understand it today. The Anansi Project now maintains the spec and publishes the list of fields and allowed values on GitHub.
The file sits at the root of the archive, next to the pages:
Dragon Ball 01.cbz
├── 001.jpg
├── 002.jpg
├── …
└── ComicInfo.xml
What's inside a ComicInfo.xml?
Plain XML you can open in any text editor. Here's an example for the first volume of a manga:
<?xml version="1.0" encoding="utf-8"?>
<ComicInfo>
<Series>Dragon Ball</Series>
<Number>1</Number>
<Writer>Akira Toriyama</Writer>
<Penciller>Akira Toriyama</Penciller>
<LanguageISO>en</LanguageISO>
<Manga>YesAndRightToLeft</Manga>
</ComicInfo>
Every field is optional. The ones you'll use most:
SeriesandNumber: the series and the issue or volume number, so #10 sorts after #9 instead of landing between #1 and #2.TitleandSummary: the story title and a short description.Writer,Penciller,Colorist: the creators, one role at a time.Year,MonthandPublisher: the release date and the publisher.Manga:Yesmarks the book as manga,YesAndRightToLeftalso says it reads right to left.
Who reads it, and what does it change?
A library server is where you'll notice it most. Komga and Kavita read ComicInfo.xml to group books into series, number them, and show creators and summaries. Without it, they guess from file names. That works when your folders are tidy and falls apart when an issue is called scan_final_v2.cbz.
For manga, the Manga field is the one that matters. Foldbook reads that field in a CBZ and opens the volume right to left without you touching a setting. When the field is missing, Foldbook goes by the library type (a "Manga" library reads right to left), and if you flip the direction in the reader, it remembers that for the whole series. Our guide to reading manga right to left covers those settings.
Should you tag your whole collection?
Not necessarily. If you keep one folder per series with numbers in the file names, your reader app already does fine: that's what our guide to organizing manga files into folders walks through. ComicInfo.xml earns its keep when you want complete book pages (creators, summaries, dates) in Komga or Kavita, or when your collection is full of file names nothing can sort.
There are two ways to add it:
- By hand, for a few books: write the file in a text editor, then drop it into the archive. A CBZ is a renamed ZIP, so rename it to
.zip, add the file, and change the extension back to.cbz. - With ComicTagger, for a whole collection: this free, open source app looks up each issue on Comic Vine and writes the file for you. Comic Vine's coverage of American comics is strong; for manga and European albums, check its matches before you save.
If you're still deciding between Komga and a plain NAS share, see Komga or a plain shared folder.
Other questions people ask
Can a CBR contain a ComicInfo.xml?
Yes, the file goes in a CBR or CB7 the same way. You need a tool that can write RAR archives to add it, though, and not every reader looks for it in those formats. Plenty of people use the occasion to convert their CBRs to CBZ: our piece on CBZ vs CBR vs CB7 explains the difference.
Does adding a ComicInfo.xml change the pages?
No. It's a separate file inside the archive, so adding, editing or deleting it leaves every image alone.
What about PDFs?
A PDF doesn't hold a ComicInfo.xml. It has its own metadata (title, author) and can set a right-to-left reading direction in its viewer preferences, which Foldbook also reads.


