---
title: '|unlocalize'
description: forces one value to stay machine-readable.
date: '2026-08-21'
categories:
  - Filter
  - Formatting
canonical: https://coolify.djangotemplatetagsandfilters.com/filters/unlocalize/
doc_link: >-
  https://docs.djangoproject.com/en/6.1/topics/i18n/formatting/#std-templatefilter-unlocalize
---

# |unlocalize

forces one value to stay machine-readable.

## Documentation

Formats one value without locale-aware formatting.

### Template

```django
{% load l10n %}
<input type="number" value="{{ price|unlocalize }}">
```

This is the one that saves you: a number in a form field, a data attribute, or a JavaScript literal has to keep its dot decimal separator, and a locale that uses a comma would otherwise break it.
