On this page
At a glance. Type text and copy it in 13 Unicode math styles. Preview it in 5 open math fonts and download them with their licences. The Formula tab turns LaTeX into Unicode text and MathML, the Symbols tab has 162 symbols, and the Picture tab saves a PNG. Your text is never uploaded.
How to use the math font generator
Type your text
Write words or a LaTeX formula such as x^2, as long as you like. Or start from one of 5 examples.
Copy a style
The Math styles tab shows your text in all 13 styles. Press Copy on one row, or Copy all styles. You can copy as text, HTML entities or code points.
Preview a math font
The Math fonts tab draws your text in 5 open math fonts. Download one with its licence for Word, LaTeX or your own web page.
Read a formula or pick symbols
The Formula tab turns LaTeX into Unicode text and MathML. The Symbols tab has 162 symbols in 8 groups. The Picture tab saves a PNG.
Math text or a math font
People searching for a math font want one of two things. Pick by where the result is going.
| You want | Use | Works where |
|---|---|---|
| Styled letters in a bio, post, message or slide | Math styles tab: Unicode text you copy | Anywhere that shows Unicode. The app draws it in its own font. |
| Equations in a document or paper | Math fonts tab: an installed OpenType math font | Word, LaTeX with XeLaTeX or LuaLaTeX, and other software that reads the font's math table |
| Math on your own web page | Formula tab: MathML, with a math font in your CSS | Browsers that draw MathML, with the font you name |
The 13 styles
The styles come from the Unicode block of mathematical alphanumeric symbols. Here is “Math 123” in each one, with the code points its capital and small letters use.
| Style | Example | Code points | Used for |
|---|---|---|---|
| Bold | 𝐌𝐚𝐭𝐡 𝟏𝟐𝟑 | U+1D400 to U+1D433 | Vectors and matrices |
| Italic | 𝑀𝑎𝑡ℎ 123 | U+1D434 to U+1D467 | Variables, as in a printed formula |
| Bold italic | 𝑴𝒂𝒕𝒉 123 | U+1D468 to U+1D49B | Emphasised variables |
| Script | ℳ𝒶𝓉𝒽 123 | U+1D49C to U+1D4CF | Sets, spaces and transforms |
| Bold script | 𝓜𝓪𝓽𝓱 123 | U+1D4D0 to U+1D503 | Heavier script |
| Fraktur | 𝔐𝔞𝔱𝔥 123 | U+1D504 to U+1D537 | Lie algebras and ideals |
| Bold fraktur | 𝕸𝖆𝖙𝖍 123 | U+1D56C to U+1D59F | Heavier fraktur |
| Double-struck | 𝕄𝕒𝕥𝕙 𝟙𝟚𝟛 | U+1D538 to U+1D56B | Number sets such as the reals |
| Sans-serif | 𝖬𝖺𝗍𝗁 𝟣𝟤𝟥 | U+1D5A0 to U+1D5D3 | Plain letters without serifs |
| Sans-serif bold | 𝗠𝗮𝘁𝗵 𝟭𝟮𝟯 | U+1D5D4 to U+1D607 | Headings and labels |
| Sans-serif italic | 𝘔𝘢𝘵𝘩 123 | U+1D608 to U+1D63B | Slanted labels |
| Sans-serif bold italic | 𝙈𝙖𝙩𝙝 123 | U+1D63C to U+1D66F | Strong slanted labels |
| Monospace | 𝙼𝚊𝚝𝚑 𝟷𝟸𝟹 | U+1D670 to U+1D6A3 | Code and fixed-width tables |
The block has digits only in 5 styles (bold, double-struck, sans-serif, sans-serif bold, monospace) and Greek letters only in 5 (bold, italic, bold italic, sans-serif bold, sans-serif bold italic). Elsewhere those characters stay plain, and the tool lists them.
Unicode keeps 24 of these letters outside the block, in Letterlike Symbols: double-struck R is ℝ (U+211D), italic h is ℎ (U+210E), script B is ℬ (U+212C), fraktur C is ℭ (U+212D). The tool picks the right one for each letter, so no style has a gap. For one style on its own, see the Double-Struck Text Generator and the Fraktur Font Generator.
Math fonts to download
Each font below has an OpenType MATH table and covers the math alphabets. Each file is kept as downloaded from its source, with no conversion by this site, next to its licence text.
| Font | Look | Licence | File |
|---|---|---|---|
| STIX Two Math | Times-style serif, the publishers' standard math font | SIL Open Font License 1.1 (opens in a new tab) | TTF, 1.0 MB download STIX Two Math |
| Latin Modern Math | Knuth's Computer Modern, the look of a LaTeX paper | GUST Font License (opens in a new tab) | OTF, 717 KB download Latin Modern Math |
| XITS Math | Times-like serif built on STIX | SIL Open Font License 1.1 (opens in a new tab) | OTF, 535 KB download XITS Math |
| Libertinus Math | Linux Libertine style, a warm book serif | SIL Open Font License 1.1 (opens in a new tab) | OTF, 575 KB download Libertinus Math |
| Noto Sans Math | Plain sans-serif math for screens and slides | SIL Open Font License 1.1 (opens in a new tab) | TTF, 992 KB download Noto Sans Math |
The Math fonts tab draws your own text in each one first, so you can compare before you download. Project pages: STIX Two Math (opens in a new tab), Latin Modern Math (opens in a new tab), XITS Math (opens in a new tab), Libertinus Math (opens in a new tab), Noto Sans Math (opens in a new tab).
Install and use a font
- Windows. Right-click the downloaded file and choose Install, as Microsoft Support (opens in a new tab) describes.
- Mac. Double-click the file and choose Install Font in Font Book, as Apple Support (opens in a new tab) describes.
- LaTeX. Use XeLaTeX or LuaLaTeX with the unicode-math package (opens in a new tab) and choose the font with
\setmathfont. - Word. Press Alt and = to start an equation. Microsoft's Math in Office blog (opens in a new tab) explains how a document's math font is chosen.
- Your own web page. Host the file, load it with
@font-faceand name it in the CSS for your MathML. MDN's guide to fonts for MathML (opens in a new tab) covers it. Keep the licence file with the font.
Limits of math text
- Not a font. Pasted text keeps the characters, not the look. The app draws them in its own font.
- Screen readers. Many read styled letters one by one or skip them. Do not use them for names, links, calls to action or anything people must hear.
- Search. A search for the plain spelling may not match the styled letters.
- Missing glyphs. An app or device without a style may draw a box. Test in the place you paste.
- Plain text cannot stack. A fraction becomes one line, and the Formula tab lists anything it could not write.
Cambria Math
Cambria Math is Microsoft's math font. It is not an open font, and this site does not host or offer it. The Cambria Math Font Generator shows your text in your own copy when your device has one, and explains the licence with its sources.
Private by design
Styling, the preview and the picture run in your browser. Your text is not uploaded or stored on a server. Option choices stay in your own browser storage, and your text does not.
Frequently asked questions
What is a math font generator?
The name covers two things. Most people mean a tool that rewrites plain text in the Unicode math alphabets, such as bold, script, fraktur and double-struck, so it can be pasted into a bio, a message or a document. Others mean a font made for equations, which you install on a computer. This page does both: it copies the text styles and offers open math fonts to download.
Are the styled letters a real font?
No. Each one is a separate Unicode character from the Mathematical Alphanumeric Symbols block (U+1D400 to U+1D7FF), made for writing mathematics. That is why they paste almost anywhere without installing anything. The app you paste into draws them in its own font, so the shapes can differ.
Why do some letters come from another part of Unicode?
Unicode did not repeat letters it already had. 24 letters of the block sit in Letterlike Symbols instead, such as double-struck R (U+211D), italic h (U+210E), script B (U+212C) and fraktur C (U+212D). The tool uses the right one for every letter, so no style has a gap.
Why do my digits or Greek letters stay plain in some styles?
The block has digits only in bold, double-struck, sans-serif, sans-serif bold, monospace styles, and Greek letters only in bold, italic, bold italic, sans-serif bold, sans-serif bold italic styles. In the other styles those characters stay as you typed them, and the tab says which ones.
Can I download a math font here, and is it free?
Yes, 5 of them: STIX Two Math, Latin Modern Math, XITS Math, Libertinus Math, Noto Sans Math. Each file is kept as downloaded from its source, with no conversion by this site, and its licence text sits beside it. All but Latin Modern Math are under the SIL Open Font License 1.1; Latin Modern Math uses the GUST Font License. Both let you use the font freely and pass it on under their terms, so read the licence text before you redistribute one.
Can I download Cambria Math?
Not from this site. Cambria Math is a Microsoft font, and Microsoft's font FAQ says fonts supplied with Windows may not be copied to other computers or servers or redistributed. If you have Windows or Microsoft Office, you already have it. The Cambria Math Font Generator page explains the licence with its sources.
Which math font should I pick?
For a Times-style paper, STIX Two Math or XITS Math. For the look of a LaTeX paper, Latin Modern Math. For a warmer book serif, Libertinus Math. For slides and screens, Noto Sans Math. All five have an OpenType MATH table, which is what lets software build fractions and roots.
How do I use a math font in LaTeX?
Compile with XeLaTeX or LuaLaTeX, load the unicode-math package and choose the font with \setmathfont, for example \setmathfont{Latin Modern Math}. Plain pdfLaTeX does not read OpenType math fonts. The package's page on CTAN has the manual.
Are Unicode math letters safe for a bio, a username or a post?
Use them sparingly. In one published test of styled text, NVDA did not announce the styled letters and JAWS read each one out by name. A search for the plain spelling may not find them either, and an app without a style may draw a box. Keep names, links, calls to action and anything people must search for or listen to in plain letters.
Can I paste the result into Word as an equation?
The text pastes as ordinary characters. For a real equation, use Word's equation editor: press Alt and = to start one. The Formula tab writes Unicode text and MathML, not Word's equation format.
Is my text stored or sent anywhere?
No. The styling, the preview and the picture all run in your browser, and your text is not uploaded. Only your option choices stay in your browser storage. A share link contains your text only because you asked for a link.
Sources
- Unicode code chart: Mathematical Alphanumeric Symbols (U+1D400 to U+1D7FF) (opens in a new tab)
- Wikipedia: Mathematical Alphanumeric Symbols (the letters kept in Letterlike Symbols) (opens in a new tab)
- Adrian Roselli: do not use fake bold or italic in social media (screen reader test of Unicode math letters) (opens in a new tab)
- MDN: Fonts for MathML (math fonts and the OpenType MATH table) (opens in a new tab)
- MDN: MathML (browser availability) (opens in a new tab)
- SIL Open Font License FAQ (using and embedding open fonts) (opens in a new tab)
- CTAN: unicode-math (using OpenType math fonts in XeLaTeX and LuaLaTeX) (opens in a new tab)
- Microsoft Support: add a font (Windows) (opens in a new tab)
- Apple Support: install fonts in Font Book (Mac) (opens in a new tab)
- Microsoft Support: keyboard shortcuts for equations (Alt and =) (opens in a new tab)
- Microsoft Math in Office: default math properties (choosing the math font for a document) (opens in a new tab)
- Microsoft Learn: font redistribution FAQ (why Cambria Math is not offered here) (opens in a new tab)
Font details come from each font's own licence text, kept beside the file. Code point counts were measured from the font files this site ships. This is not legal advice.
Published: