Convert Unicode date representations

What a Unicode date converter changes, when styled or native-script digits stay usable, and when a plain ISO 8601 date is the safer choice.

A date like 2026-10-31 can be written with many different Unicode characters. It can use fullwidth digits, mathematical bold digits, circled numbers, or the native digits of Arabic, Persian or Devanagari script. It can also use any of several dash and slash characters. A Unicode date converter moves a date between these forms. This review explains what such a conversion changes, what it leaves alone, and how to judge whether the result will still work as a date.

Scope note: no specific converter, website or app was tested for this article, and no measurements were supplied. The statements below rely on documented Unicode behavior and general principles. Where behavior depends on a particular app, font or screen reader, the article says so rather than guessing.

Is a Unicode date conversion suitable for your use?

The answer depends on which kind of conversion you need.

Converting a date into a locale's own digit system can be appropriate, for example Arabic-Indic digits for an Arabic-language page. Those characters are real decimal digits in Unicode, and software that handles Unicode numbers can interpret them. Do this through a localization library rather than by swapping characters by hand. A library also handles field order, separators and month names for the locale.

Converting in the other direction is often worth doing on input you receive. This means turning styled, fullwidth or native-script digits back into plain ASCII digits. Forms, spreadsheets and databases usually expect 0–9, and normalizing first prevents silent parse failures.

Converting a date into decorative characters is a visual effect only. Mathematical bold digits, circled numbers and superscripts look styled, but the date stops behaving like ordinary text. Use them only where the date is purely ornamental, such as a social media bio or a headline graphic. Never use them where the date must be searched, sorted, parsed or read aloud reliably.

Plain text is preferable whenever the date carries meaning someone will act on. Examples include deadlines, appointments, legal or financial documents, data files, and anything a screen reader user needs to hear. For styling, keep plain characters in the text and apply fonts or CSS at display time. For machine-readable values, store an unambiguous format such as ISO 8601 (YYYY-MM-DD).

What the conversion actually changes

The key question is whether the stored characters change, or only how they look on screen. Unicode date conversion can mean several different operations, and they behave differently.

Operation | Stored characters change? | Still real digits? | Example
Styled substitution (bold, double-struck, monospace math digits) | Yes | Technically classed as digits, but intended for mathematical notation | 𝟐𝟎𝟐𝟔 instead of 2026
Fullwidth substitution | Yes | Yes, as compatibility forms of ASCII digits | 2026 instead of 2026
Circled or superscript numbers | Yes | No, they are not decimal digits | ③① or ³¹
Native digit systems | Yes | Yes, decimal digits with full numeric values | ٢٠٢٦ (Arabic-Indic), २०२६ (Devanagari)
Separator swaps | Yes | Not applicable | U+2010 hyphen, U+2013 en dash or U+2215 division slash instead of ASCII - or /
Field reordering | Yes | Unchanged | 10/31/2026 to 31/10/2026 or 2026-10-31
Font or CSS styling | No | Unchanged | Plain 2026 displayed in a decorative font
Bidirectional display | No (unless control characters are inserted) | Unchanged | Same stored date shown in a different visual order inside right-to-left text

Converting styled forms back to plain digits is partly handled by Unicode normalization. NFKC normalization maps fullwidth digits, mathematical styled digits, circled digits and superscripts to ordinary ASCII digits. It also maps the fullwidth hyphen-minus to the ASCII hyphen-minus.

NFKC does not convert native digit systems. Arabic-Indic or Devanagari digits are distinct characters, not compatibility variants, so they pass through normalization unchanged. Converting them requires mapping each character by its Unicode decimal value.

NFKC also changes many non-date characters, such as ligatures and some symbols. Apply it to the date portion only, not to surrounding prose.

import unicodedata

def date_to_ascii_digits(text):
    # NFKC folds fullwidth, styled, circled and superscript digits
    text = unicodedata.normalize("NFKC", text)
    # Map remaining decimal digits (Arabic-Indic, Devanagari, etc.) by value
    return "".join(
        str(unicodedata.decimal(ch)) if unicodedata.category(ch) == "Nd" else ch
        for ch in text
    )

The sketch above follows the documented Unicode data. It was not run against a test suite for this article, so verify it on your own sample inputs. It also leaves non-ASCII dashes and slashes in place. For example, an en dash or division slash between fields survives NFKC, so a date parser may still reject the result. Add an explicit separator mapping if your inputs contain them.

Reverse, mirror and font: three easily confused terms

Reversing a date changes the stored character order. Reversing 2026-10-31 character by character gives 13-01-6202, which no longer reads as a valid date. It is not the same as switching from year-first to day-first order. Field reordering moves whole fields and gives 31-10-2026 instead.

Naive reversal also breaks multi-code-point sequences. A keycap digit such as 2️⃣ is three code points: the digit, a variation selector and a combining enclosing keycap. Reversing by code point separates them, and the digit loses its keycap.

Mirroring usually means substituting lookalike characters that resemble flipped digits. Those characters are not digits, so a mirrored date is decoration, not data.

A Unicode font in many online tools is not a font at all. It is character substitution from the mathematical alphanumeric block. A real font changes appearance without changing the characters.

Display order is not stored order

In right-to-left languages, the Unicode Bidirectional Algorithm decides how a date appears among the surrounding text. Digits and separators such as slashes and hyphens have their own bidirectional properties. A date can therefore appear in a different visual order than the stored characters suggest, especially when it sits next to punctuation or mixed-direction text.

The stored date is unchanged in these cases. Only the displayed layout differs. The documented fix is to isolate the date, either with the HTML bdi element or dir attribute, or with the Unicode isolate characters (U+2066 LEFT-TO-RIGHT ISOLATE through U+2069 POP DIRECTIONAL ISOLATE). Those control characters are invisible, but they are stored in the text and are copied along with it.

Will the date stay readable and usable after copying or sharing?

Copy and paste carries the stored characters, not the appearance. A date styled with CSS pastes as plain text. A date built from substituted characters pastes as those characters, and the destination may render them differently or not at all. If the receiving font lacks a glyph, the reader may see empty boxes. Rendering varies by platform and font, so a date that looks correct in one app does not prove it will look correct elsewhere.

Searching and parsing are where substituted dates fail most quietly. Find-in-page and most date parsers match on characters. A search for 2026 may not find 𝟐𝟎𝟐𝟔 or 2026 unless the software applies compatibility folding. Whether a given search engine, spreadsheet or content management system folds these forms is not documented in the material behind this article. Test the specific destination before relying on it.

Screen readers may announce styled digits by their character names, skip them, or read them as intended, depending on the screen reader, its version and the speech synthesizer. No scoped screen reader test was available for this review. The safe assumption is that decorative digit substitution can make a date hard or impossible to understand by ear. Native-script digits used in properly localized text are a different case, because they are the expected notation for that language.

Editing is affected too. Bidirectional isolate and mark characters are invisible, so users can delete or duplicate them without noticing, which changes how the date displays. Styled characters also cannot be corrected by typing ordinary digits over part of them without producing a mix of styles.

Provide a plain-text equivalent whenever a decorative or substituted date appears in content people rely on. On the web, the HTML time element with a datetime attribute keeps a machine-readable ISO 8601 value next to whatever is displayed, for example a time element with datetime set to 2026-10-31.

Character conversion does not fix ambiguous field order

Swapping digit characters does nothing about field order. In the United States, 03/04/2026 conventionally means March 4. In much of the world it means 3 April. Converting the digits to another script, or back to ASCII, leaves that ambiguity intact.

If a date will cross regions, either spell out the month or use ISO 8601. If you need locale-correct output, including native digits, use a localization API instead of a character converter. In JavaScript, Intl.DateTimeFormat accepts a numbering system through the locale's -u-nu- extension or the numberingSystem option, and it applies the locale's field order and separators along with it.

const date = new Date(Date.UTC(2026, 9, 31));

// US English formatting with Arabic-Indic digits
new Intl.DateTimeFormat("en-US-u-nu-arab", { timeZone: "UTC" }).format(date);

// Default formatting for an Arabic locale
new Intl.DateTimeFormat("ar-EG", { dateStyle: "medium", timeZone: "UTC" }).format(date);

The exact output strings depend on the runtime's locale data version, so they are not shown here. Check the output in your own environment.

Bottom line

  • Normalize incoming dates to ASCII digits before parsing: NFKC for styled and fullwidth forms, then decimal-value mapping for native digit systems, then explicit separator mapping.
  • Produce native-script dates through localization APIs, not character substitution.
  • Treat styled, circled, mirrored or reversed dates as decoration, and keep a plain-text or machine-readable version alongside them.
  • Use markup or isolate characters to control right-to-left display, and remember that the control characters travel with copied text.
  • Test search, parsing and screen reader behavior in your actual destination. Rendering correctly in one place does not establish compatibility everywhere.