---
title: Pages Router
description: Before Next.js 13, the Pages Router was the main way to create routes in Next.js with an intuitive file-system router.
url: "https://nextjs.org/docs/pages"
docs_index: /docs/pages/llms.txt
lastUpdated: 2025-04-15
---

> For an index of all documentation, see [/docs/pages/llms.txt](/docs/pages/llms.txt).

> You're viewing the documentation for the Pages Router. See the [App Router](/docs/app) documentation for the latest features.

The **Pages Router** uses an intuitive file-system router to map each file to a route.

Before Next.js 13, the Pages Router was the main way to create routes in Next.js. It's still supported in newer versions of Next.js, but we recommend migrating to the new [App Router](/docs/app) to leverage React's latest features.

- [Getting Started](/docs/pages/getting-started): Learn how to create full-stack web applications with Next.js with the Pages Router.
- [Guides](/docs/pages/guides): Learn how to implement common UI patterns and use cases using Next.js
- [Building Your Application](/docs/pages/building-your-application): Learn how to use Next.js features to build your application.
- [API Reference](/docs/pages/api-reference): Next.js API Reference for the Pages Router.

---

For a semantic overview of all documentation, see [/sitemap.md](/sitemap.md)

For an index of all available documentation, see [/docs/pages/llms.txt](/docs/pages/llms.txt)