---
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/13/pages"
docs_index: /docs/13/pages/llms.txt
lastUpdated: 2023-06-08
---

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

Before Next.js 13, the Pages Router was the main way to create routes in Next.js. It used an intuitive file-system router to map each file to a route. The Pages Router is 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.

Use this section of the documentation for existing applications that use the Pages Router.

- [Building Your Application](/docs/13/pages/building-your-application): Learn how to use Next.js features to build your application.
- [API Reference](/docs/13/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/13/pages/llms.txt](/docs/13/pages/llms.txt)