Widely availableSupported across all major browsers. Safe to use in production.

Overview

Unicode point escapes (\\u{}) represent Unicode characters within strings.

Browser support

Feature Desktop Mobile
Chrome
Edge
Firefox
Safari
Chrome Android
Safari iOS
44
12
40
9
44
9
1+Supported (version) Not supported Has note Sub-feature descriptions sourced from MDN Web Docs (CC BY-SA 2.5)

Syntax

JAVASCRIPT
'\u{1F600}'; // '😀'
'\u{41}';    // 'A'

// Traditional surrogate pair
'\uD83D\uDE00'; // '😀' (same character)

Live demo

Characterdisplay with co-point.

\u{...} shape notation. escape-pshi-kens Use, special character display..

PreviewFullscreen

4 digit co-point

is representationationation in or, 4 digit character(saroge-tpea that main character) directlydescribe.. with traditional. \uXXXX

PreviewFullscreen

Stringinside. embed

textchapter. middle to Unicode escape-p mixdescribe..

PreviewFullscreen

Use cases

  • Using Unicode point escapes

    Unicode point escapes (\\u{}) represent Unicode characters within strings.

Cautions

  • No specific concerns. Stable across all major browsers.

Accessibility

  • When updating the DOM dynamically, announce important changes to assistive technology with aria-live regions.

Powered by web-features