---
title: '|ordinal'
description: converts a number to its ordinal form.
date: '2026-08-21'
categories:
  - Filter
  - Number
canonical: https://djangotemplatetagsandfilters.com/filters/ordinal/
doc_link: >-
  https://docs.djangoproject.com/en/6.1/ref/contrib/humanize/#std-templatefilter-ordinal
---

# |ordinal

converts a number to its ordinal form.

## Documentation

Converts an integer to its ordinal string — the form you would say out loud.

### Template

```django
{% load humanize %}
<p>You finished {{ place|ordinal }}</p>
```

### Result

```django
<p>You finished 3rd</p>
```

It knows the awkward ones: 1st, 2nd, 3rd, but 11th, 12th, and 13th.
