Book Index DeskA working desk for your book index

Check the references. Then tidy the numbers.

Page Range Formatter

Sort a page list, remove duplicates, and merge consecutive references. Enter 12, 4-6, 5, 10–11 to get 4–6, 10–12.

Positive integers · Complete endpoints · No PDF required

Use commas, spaces or line breaks. Ranges accept a hyphen, en dash or em dash. Only positive integers from 1 to 10000 are supported; Roman numerals, letter prefixes and abbreviated endpoints need manual handling.

Enter pages and format them to remove duplicates, sort and merge consecutive pages.

Use this index page range formatter when you already know which printed pages belong in a reference list. It sorts positive integers, removes duplicate references, and combines consecutive pages. It does not read a PDF or decide whether a passage deserves an index entry. Start with the small example above, then replace it with your own numbers.

Enter pages, rather than a finished index entry

Paste page numbers and ascending ranges into the input box. Separate items with commas, spaces, or line breaks. A range may use a hyphen, an en dash, or an em dash: 4-6, 4–6, and 4—6 all include pages 4, 5, and 6. Both endpoints are included. The maximum accepted page number is 10000, and only positive whole numbers are supported.

Keep entry headings, notes, and punctuation outside this numeric field. For example, copy 12, 18–20, 19 from a note headed “Public art,” rather than pasting the words with the numbers. The result is 12, 18–20. Repeated page 19 is removed because it is already inside the range. The tool has no field for a concept heading and will not attach the result to an index entry for you.

Invalid input is a reason to check the source, rather than accept a partial answer. Zero, negative values, decimals, scientific notation, reversed ranges such as 8–3, and mixed words are rejected. A book with Roman-numbered preliminaries or appendix labels such as A-3 needs a separate notation workflow. Do not remove the letter from an appendix reference just to make it pass: that would change its meaning.

Check what the combined range actually says

Every page represented by the output must have been present in the input. Entering 20, 22 produces 20, 22, not 20–22; the latter would introduce page 21. Likewise, 4–6, 6–8 becomes 4–8 because the combined input contains every integer from 4 through 8. The formatter works on that set of numbers, without guessing where a chapter or discussion begins and ends.

Input order does not affect the set. Try 12, 4-6, 5, 10—11: the distinct pages are 4, 5, 6, 10, 11, and 12, so the result is 4–6, 10–12. This example checks sorting, an overlapping single page, two input dash styles, and adjacency between the final range and page 12. You can compare the result with the expanded list before using it in a manuscript.

Complete endpoints are intentional. Pages 109, 110, 111, 112 become 109–112. The output uses an en dash between consecutive endpoints and a comma followed by a space between separate items. It does not apply shortened page-number conventions, distinguish a passing mention from an extended discussion, or certify a publisher's indexing style. Apply your editor's style sheet after the reference set itself is correct.

Move the result into your actual workflow

Run the formatter after editing the input. A successful result enables the TXT download; changing the input clears that result and disables its download until you format again. This helps prevent a previous list from being mistaken for the latest one. After downloading, inspect the saved file in a text editor and confirm that it contains the result you intended. A browser download event alone does not establish where the file was saved.

The downloaded text is a formatted list, not an editable book-index project. Save your original notes separately if you need headings, reasons for inclusion, or a record of rejected references. This tool does not save a reference list into the homepage workspace and does not replace an existing entry's manual pages.

For PDF searching, establish the physical-PDF-to-printed-page mapping in the book indexing workspace, then review candidate matches there. Only use this formatter for the resulting printed-page numbers. Confusing PDF page 12 with printed page 4 would produce a neatly formatted but incorrect reference. Formatting cannot detect that mistake because it has no access to your book or mapping. The privacy notice explains the distinction between local numeric processing and the website's technical and usage statistics.

Page range questions

Which input formats can I use?
Use positive integers and ascending ranges separated by commas or whitespace. Ranges accept a hyphen, en dash, or em dash. The largest page number is 10000. Roman numerals, letter prefixes, decimals, and reversed ranges are rejected.
Why do pages 20 and 22 stay separate?
They are not consecutive. Writing 20–22 would add page 21, which was absent from the input. The formatter combines only the pages your input actually represents.
Will 109–112 be shortened to 109–12?
No. This tool always writes complete endpoints. Apply any publisher-specific page-number abbreviation rules separately after checking the references.
Does formatting update my book-index project?
No. This is a separate numeric utility. It does not read or change the indexing workspace. Use the homepage for PDF matches, printed-page mapping, and entry review.