---
title: File Conventions
description: API Reference for Next.js Special Files.
url: "https://nextjs.org/docs/14/app/api-reference/file-conventions"
version: 14.2.35
lastUpdated: 2023-06-08
prerequisites:
  - "API Reference: /docs/14/app/api-reference"
---



- [default.js](/docs/14/app/api-reference/file-conventions/default)
  - API Reference for the default.js file.
- [error.js](/docs/14/app/api-reference/file-conventions/error)
  - API reference for the error.js special file.
- [layout.js](/docs/14/app/api-reference/file-conventions/layout)
  - API reference for the layout.js file.
- [loading.js](/docs/14/app/api-reference/file-conventions/loading)
  - API reference for the loading.js  file.
- [not-found.js](/docs/14/app/api-reference/file-conventions/not-found)
  - API reference for the not-found.js file.
- [page.js](/docs/14/app/api-reference/file-conventions/page)
  - API reference for the page.js file.
- [route.js](/docs/14/app/api-reference/file-conventions/route)
  - API reference for the route.js special file.
- [Route Segment Config](/docs/14/app/api-reference/file-conventions/route-segment-config)
  - Learn about how to configure options for Next.js route segments.
- [template.js](/docs/14/app/api-reference/file-conventions/template)
  - API Reference for the template.js file.
- [Metadata Files](/docs/14/app/api-reference/file-conventions/metadata)
  - API documentation for the metadata file conventions.

---

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