---
title: '|utc'
description: converts a datetime to UTC.
date: '2026-08-21'
categories:
  - Filter
  - Date and Time
canonical: https://coolify.djangotemplatetagsandfilters.com/filters/utc/
doc_link: >-
  https://docs.djangoproject.com/en/6.1/topics/i18n/timezones/#std-templatefilter-utc
---

# |utc

converts a datetime to UTC.

## Documentation

Converts one aware datetime to UTC.

### Template

```django
{% load tz %}
{{ value|utc }}
```

Handy where a timestamp has to be unambiguous — a log line, or something another system will parse.
