URL, HTTP & APIs

Pagination Calculator

Work out the page count, offset, limit, and item range for any paged list, then copy ready-to-paste SQL, query strings, or API URLs. Everything runs in your browser.

Runs in your browser v1.0.0

Your numbers

live

Page numbers are 1-based. A page past the last one is clamped to the final page.

Result

live


                

Pagination preview

live

Select a page to update every result.

How it works

Pagination turns a total item count and a page size into the numbers an API, database query, or interface needs. The offset is (page − 1) × page size, the total page count is ceil(total ÷ page size), and the visible range runs from offset + 1 to min(offset + page size, total). Everything is calculated in your browser and never sent anywhere.