Skip to main content



  • fromHexcodeToCodepoint(code: string, joiner?: string): CodePoint[]

  • This function will convert a hexadecimal codepoint to an array of numerical codepoints. By default, it will split the hexcode using a dash, but can be customized with the 2nd argument.

    import { fromHexcodeToCodepoint } from 'emojibase';

    fromHexcodeToCodepoint('270A-1F3FC'); // [9994, 127996]
    fromHexcodeToCodepoint('270A 1F3FC', ' '); // [9994, 127996]