Intl locale formats
Number, date, calendar, numbering system and hour cycle formats the browser would use.
In one line
Can see the date, number and clock formats your browser uses
Number, date, calendar, numbering system and hour cycle formats the browser would use.
resolvedOptions() exposes calendar (gregory, buddhist, japanese), numberingSystem (latn, arab), hourCycle (h12 or h23), and decimal and thousands marks. Reveals regional OS settings beyond language.
What it can and can't do
What the user does: Nothing. It happens when the page or app loads
It can
- Check the calendar type, number style and 12 or 24 hour clock
- Show dates and numbers the way you expect
- Learn about your regional settings beyond your language
It cannot
- See your exact location from it
- See your files or settings outside the browser
- Show a permission pop up; there is none
Browser support
| Browser | Status | First version | Released | Note |
|---|---|---|---|---|
| Chrome | Supported | 24 | 2013-01-10 | None |
| Edge | Supported | 12 | 2015-07-29 | None |
| Firefox | Supported | 29 | 2014-04-29 | None |
| Safari | Supported | 10 | 2016-09-20 | None |
| Safari on iPhone | Supported | 10 | 2016-09-13 | None |
| Chrome on Android | Supported | 25 | 2013-02-27 | None |
| Samsung Internet | Supported | 1.5 | 2013-09-25 | None |
How a site asks for it
| API | Intl.DateTimeFormat().resolvedOptions(), Intl.NumberFormat().format(), toLocaleString() |
| Browser compat keys | javascript.builtins.Intl.DateTimeFormat.resolvedOptions |
| How access is granted | none |
| What the user sees | None |
| Needs a secure context (HTTPS) | No |
| Needs a user gesture | No |
| How long it lasts | read fresh on every page load; nothing stored |
| How to take it back | none needed (no grant) |
| Inside an iframe | Readable from cross-origin iframes too (same values) |
Typical flow
- Page script reads the value
- No prompt is shown
Data you get
Shape: object
How often: static per session
| Field | Type | Unit | Range | Precision |
|---|---|---|---|---|
calendar | string | None | gregory, buddhist, japanese, islamic ... | Not listed |
numberingSystem | string | None | latn, arab, deva ... | Not listed |
hourCycle | enum | None | h11, h12, h23, h24 | Not listed |
Technical limits
- Follows browser locale, not guaranteed OS
The story
What it is
The page sees how your device writes dates, numbers and clocks.
For you
A price, date or time appears the way you are used to, like 15/11/2026 or 3:00 PM. You do not see that the page asked your device how it writes them. No prompt appears.
For makers
Makers need local formats to show prices and dates correctly. The same details, such as calendar and number system, are extra clues to country and language, which fingerprinting scripts like.
Where you see it
| Type | Example | Apps |
|---|---|---|
| shopping | A store shows prices with the right currency symbol and decimals for your country. | Amazon, Shopify stores |
| travel | A booking site shows dates and 12 or 24 hour times as you expect. | Booking.com, Airbnb |
| games | A browser game shows event timers and in game dates in your local style. | None named |
| banking | A bank shows balances with the right thousands separator and calendar. | None named |
| analytics | A fingerprinting script reads calendar and numbering system as a clue to region. | None named |
| security | A fraud engine compares formats with the claimed country and flags a mismatch. | None named |
Risks
- Hints at region
- Part of a fingerprint
What the platform says
- MDN (standards docs): Intl. Describes built in tools that format dates, numbers and currency for the person's region and language.
Good uses and abuse
Legitimate uses
- Format dates, numbers
Known abuse
- Region setting fingerprint
Scores
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 1 of 5 | How revealing the data is |
| Utility | 4 of 5 | How useful it is to honest apps |
| Friction | 0 of 5 | How much the user has to do |
| Fingerprint bits | 2.5 | Rough identifying entropy, when known |
Related capabilities
Related
- Languages (Accept-Language and navigator.languages). Can see the languages you prefer, in order, with every page request
Sources
How well checked: Based on official documentation.