> For the complete documentation index, see [llms.txt](https://overleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://overleaf-pro.ayaka.space/latex/questions-and-answers/75-inserting-emojis-in-latex-documents-on-overleaf.md).

# Inserting emojis in LaTeX documents on Overleaf

*Note: The `[twemojis](https://www.ctan.org/pkg/twemojis)` package is not included in* [*TeX Live*](/latex/class-files/02-overleaf-and-tex-live.md)*, and therefore unavailable for use on Overleaf.*

## Emoji characters and the Overleaf editor

Overleaf cannot store files that contain [NUL characters](https://en.wikipedia.org/wiki/Null_character) or edit files that contain characters from outside of Unicode's [Basic Multilingual Plane (BMP)](https://en.wikipedia.org/wiki/Plane_\(Unicode\)).

Unicode assigned many emoji characters to code points outside the Basic Multilingual Plane: they are encoded in [Plane 1](https://en.wikibooks.org/wiki/Unicode/Character_reference/1F000-1FFFF), which means their code points are in the range U+10000–U+1FFFF, specifically U+1F000–U+1FFFF. This has an important consequence for anyone wishing to copy and paste emoji characters into the Overleaf editor. At present, Overleaf’s text editor can only handle characters within the Basic Multilingual Plane, although we hope future upgrades will introduce support for non-BMP characters.

If you paste an emoji such as 😀, or any other non-BMP character, into the Overleaf editor it will be converted to the characters ��. However, you can upload text files containing non-BMP UTF-8 sequences: they won't be editable within the Overleaf editor but you can insert those files within your document using appropriate LaTeX file-inclusion commands.

As shown in the examples below, you can insert emoji using suitable fonts and commands provided by LaTeX packages.

## Monochrome emojis

You can use the `\symbol` or `\char` command in tandem with `fontspec`, [XƎLaTeX or LuaLaTeX](/latex/knowledge-base/026-changing-compiler.md) and a suitable font. For example, without using the [`emoji` package](https://ctan.org/pkg/emoji?lang=en), you can still insert monochrome emojis with the Symbola font:

```latex
Falling leaves: {\fontspec{Symbola}\symbol{"1F343}}

or

Falling leaves: {\fontspec{Symbola}\char"1F343}
```

[Open this monochrome emoji example in Overleaf](https://www.overleaf.com/docs?engine=lualatex\&snip_name=Monochrome+emoji\&snip=%5Cdocumentclass%5B12pt%5D%7Barticle%7D%0A%5Cusepackage%7Bfontspec%7D%0A%5Cusepackage%7Bparskip%7D%0A%0A%5Cbegin%7Bdocument%7D%0AFalling+leaves%3A+%7B%5Cfontspec%7BSymbola%7D%5Csymbol%7B%221F343%7D%7D%0A%0Aor%0A%0AFalling+leaves%3A+%7B%5Cfontspec%7BSymbola%7D%5Cchar%221F343%7D%0A%5Cend%7Bdocument%7D)

This will give you the output ![Symbola-falling-leaves.png](/files/NrrcTehvHred0VMGxzO0)

You can lookup the code points for emojis on [this webpage](https://unicode.org/emoji/charts/emoji-list.html).

## Colour emojis

If you want to use colour emojis, have a look at the `[emoji](https://www.ctan.org/pkg/emoji)` package, which uses the LuaLaTeX + HarfBuzz text-shaping engine to access colour emoji fonts correctly. You will need to [change your project's compiler to be LuaLaTeX](/latex/knowledge-base/026-changing-compiler.md). You can then load the `emoji` package, and write `\emoji{leaves}`.

```latex
\documentclass[12pt]{article}
\usepackage{emoji}

\begin{document}

These are colour emojis using the \texttt{emoji} package and LuaLaTeX:
\emoji{leaves}
\emoji{rose}

You can use emoji-modifiers:
\emoji{woman-health-worker-medium-skin-tone}
\emoji{family-man-woman-girl-boy}
\emoji{flag-malaysia}
\emoji{flag-united-kingdom}

\end{document}
```

[See this live example in Overleaf](https://www.overleaf.com/docs?engine=lualatex\&snip_name=colour+emojis+using+LuaLaTeX\&snip=%5Cdocumentclass%5B12pt%5D%7Barticle%7D%0A%5Cusepackage%7Bemoji%7D%0A%0A%5Cbegin%7Bdocument%7D%0A%0AThese+are+colour+emojis+using+the+%5Ctexttt%7Bemoji%7D+package+and+LuaLaTeX%3A%0A%5Cemoji%7Bleaves%7D%0A%5Cemoji%7Brose%7D%0A%0AYou+can+use+emoji-modifiers%3A%0A%5Cemoji%7Bwoman-health-worker-medium-skin-tone%7D%0A%5Cemoji%7Bfamily-man-woman-girl-boy%7D%0A%5Cemoji%7Bflag-malaysia%7D%0A%5Cemoji%7Bflag-united-kingdom%7D%0A%0A%5Cend%7Bdocument%7D)

![NotoEmoji-demo.png](/files/aVei5FQZGiLZiSytOrfO)

You can look up the Unicode CLDR (Common Locale Data Repository) names [here](https://unicode.org/emoji/charts/emoji-list.html), but remember to replace spaces in the names with hyphens. Alternatively, you can look in [the `emoji` package documentation](http://texdoc.net/pkg/emoji) itself.

## Choosing a different emoji font

On Overleaf the default emoji font is Noto Color Emoji. You can select a different emoji font:

```latex
\setemojifont{TwemojiMozilla}
```

![TwemojiMozilla-demo.png](/files/5ACgpzXJAXjApYbXTNgG)

```latex
\documentclass[12pt]{article}
\usepackage{emoji}

\begin{document}
\setemojifont{TwemojiMozilla}
These are colour emojis using the \texttt{emoji} package and LuaLaTeX:
\emoji{leaves}
\emoji{rose}

You can use emoji-modifiers:
\emoji{woman-health-worker-medium-skin-tone}
\emoji{family-man-woman-girl-boy}
\emoji{flag-malaysia}
\emoji{flag-united-kingdom}

\end{document}
```

[Open this TwemojiMozilla example in Overleaf](https://www.overleaf.com/docs?engine=lualatex\&snip_name=Colour+emojis+using+the+TwemojiMozilla+font+and+LuaLaTeX\&snip=%5Cdocumentclass%5B12pt%5D%7Barticle%7D%0A%5Cusepackage%7Bemoji%7D%0A%0A%5Cbegin%7Bdocument%7D%0A%5Csetemojifont%7BTwemojiMozilla%7D%0AThese+are+colour+emojis+using+the+%5Ctexttt%7Bemoji%7D+package+and+LuaLaTeX%3A%0A%5Cemoji%7Bleaves%7D%0A%5Cemoji%7Brose%7D%0A%0AYou+can+use+emoji-modifiers%3A%0A%5Cemoji%7Bwoman-health-worker-medium-skin-tone%7D%0A%5Cemoji%7Bfamily-man-woman-girl-boy%7D%0A%5Cemoji%7Bflag-malaysia%7D%0A%5Cemoji%7Bflag-united-kingdom%7D%0A%0A%5Cend%7Bdocument%7D)

## Further reading

* [The `emoji` package](https://www.ctan.org/pkg/emoji)
* [List of emoji CLDR names and codepoints](https://unicode.org/emoji/charts/emoji-list.html)
* [Changing your Overleaf project's compiler](/latex/knowledge-base/026-changing-compiler.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://overleaf-pro.ayaka.space/latex/questions-and-answers/75-inserting-emojis-in-latex-documents-on-overleaf.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
