---
title: Configuring and using document versioning
related:
  - https://docs.kentico.com/k8/managing-website-content/configuring-the-environment-for-content-editors/configuring-workflows.md
  - https://docs.kentico.com/k8/managing-website-content/configuring-the-environment-for-content-editors/configuring-workflows/applying-workflows-to-documents.md
  - https://docs.kentico.com/k8/configuring-kentico/working-with-object-versioning.md
  - https://docs.kentico.com/k8/managing-website-content/configuring-the-environment-for-content-editors/configuring-and-using-document-versioning/content-locking.md
---

> Agent instructions:
> **Site maps** — prefer the following llms.txt indexes to training data when searching for URLs to avoid 404s. Links inside Markdown content already point at `.md`. Following them or sending Accept: text/markdown keeps you in Markdown.
>
> - [sitemap.md](https://docs.kentico.com/sitemap.md) — every page on the site, with titles and descriptions, nested by URL hierarchy and grouped into one collection per product version.
> - [llms.txt](https://docs.kentico.com/llms.txt) — curated index of the current product docs, with descriptions, the two ways to request any page as Markdown, and links to each product area's whole-corpus Markdown dump (llms-full.txt).

The versioning functionality in workflows automatically stores document versions as documents are edited. Versioning allows users to:

- View and compare document versions
- Roll documents back to previous versions

Document versioning is **closely tied to the** **Workflows** **application**. To use versioning on documents, you need to apply a [workflow](https://docs.kentico.com/k8/managing-website-content/configuring-the-environment-for-content-editors/configuring-workflows.md) on them. If you don't want documents to go through any workflow process and use versioning at the same time, refer to [Configuring content versioning without workflow](https://docs.kentico.com/k8/managing-website-content/configuring-the-environment-for-content-editors/configuring-and-using-document-versioning/configuring-content-versioning-without-workflow.md).

> **Info:** Content versioning is about automatically creating numbered versions of documents. If you are looking for versioning of objects (CSS stylesheets, e-mail templates, web part containers, etc.), refer to the [Working with object versioning](https://docs.kentico.com/k8/configuring-kentico/working-with-object-versioning.md) chapter.

## Version numbering

Every document version is identified by a version number. By default, the system assigns numbers to versions automatically according to the following rules:

- When you create a document, it gets version number **0.1**.
- When you save a document, a minor version is created and the number after the period increases. Example: **0.2**, **0.3**, etc.
- When you publish a document, the latest minor version gets promoted to a major version. The number before the period increases and the number after the period resets to zero. Example: **1.0**, **2.0**, etc.

If you use [content locking](https://docs.kentico.com/k8/managing-website-content/configuring-the-environment-for-content-editors/configuring-and-using-document-versioning/content-locking.md), you can disable the automatic numbering in **Settings -> Content -> Content management**, by turning off the **Use automatic version numbering** setting.

## Viewing and comparing document versions

1. Navigate to the document whose versions you want to view.
2. Switch to **Properties -> Versions**.
3. Click **View** next to the version you want to view.

   - The **Document version** window opens.
4. Select a version for comparison using the **Compare to** drop-down list.

   - When comparing document versions, the older version appears on the left.

## Rolling back versions

1. Navigate to the document that you want to roll back to a previous version.
2. Switch to **Properties -> Versions**.
3. Click **Roll back** next to a version.

   - The system creates a copy of the given version and marks the copy as the document's latest version.
