Skip to Content
Platform.Ontology

Intl locale formats

Number, date, calendar, numbering system and hour cycle formats the browser would use.

Gets silentlyLanguage and settingsLanguageWeb browsersWhen the page loadsWhile you use it

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

BrowserStatusFirst versionReleasedNote
ChromeSupported242013-01-10None
EdgeSupported122015-07-29None
FirefoxSupported292014-04-29None
SafariSupported102016-09-20None
Safari on iPhoneSupported102016-09-13None
Chrome on AndroidSupported252013-02-27None
Samsung InternetSupported1.52013-09-25None

How a site asks for it

APIIntl.DateTimeFormat().resolvedOptions(), Intl.NumberFormat().format(), toLocaleString()
Browser compat keysjavascript.builtins.Intl.DateTimeFormat.resolvedOptions
How access is grantednone
What the user seesNone
Needs a secure context (HTTPS)No
Needs a user gestureNo
How long it lastsread fresh on every page load; nothing stored
How to take it backnone needed (no grant)
Inside an iframeReadable from cross-origin iframes too (same values)

Typical flow

  1. Page script reads the value
  2. No prompt is shown

Data you get

Shape: object
How often: static per session

FieldTypeUnitRangePrecision
calendarstringNonegregory, buddhist, japanese, islamic ...Not listed
numberingSystemstringNonelatn, arab, deva ...Not listed
hourCycleenumNoneh11, h12, h23, h24Not 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

TypeExampleApps
shoppingA store shows prices with the right currency symbol and decimals for your country.Amazon, Shopify stores
travelA booking site shows dates and 12 or 24 hour times as you expect.Booking.com, Airbnb
gamesA browser game shows event timers and in game dates in your local style.None named
bankingA bank shows balances with the right thousands separator and calendar.None named
analyticsA fingerprinting script reads calendar and numbering system as a clue to region.None named
securityA 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

ScoreValueMeaning
Sensitivity1 of 5How revealing the data is
Utility4 of 5How useful it is to honest apps
Friction0 of 5How much the user has to do
Fingerprint bits2.5Rough identifying entropy, when known

Sources

How well checked: Based on official documentation.

On this page