Pagination Link Tag Generator
Create the rel prev and rel next link tags for one page in a paginated series, such as a blog archive or product listing. Enter the first page's URL, the current page number and the total number of pages.
1 Fill in the boxes
2 Your answer
Your answer shows here as you type.
How to use the Pagination Link Tag Generator
- Enter the URL of the first page in the series, such as your blog archive.
- Choose whether your page links use /page/2/ or ?page=2.
- Enter the page you are on and the total number of pages.
- Copy the link tags into the head section of that page.
Frequently asked questions
What do rel next and rel prev do?
They mark the links to the next and previous pages in a paginated series, so browsers and search engines can see how the pages connect. The first page has only a next link, the last page has only a prev link, and each page in between has both.
Does Google still use rel next and rel prev?
Google stopped using them as an indexing signal in 2019. They are still valid HTML and some other tools read them, and normal crawlable links between pages in a series remain important for discovery.
Where do the pagination link tags go?
They go in the head section of each HTML page, before the closing head tag. Each page in the series gets its own tags that point to its immediate neighbours.
Wrote something with AI? Slop Monkey rewrites it so it sounds like you, and keeps your facts.