At a glance. This double struck text generator makes blackboard bold two ways. Copy and paste gives 11 looks made of Unicode characters, so they go into a bio, a message or a document. Real fonts is a picture studio that draws the same letters in 3open math fonts or the math font on your device, with 16 style presets, effects, shadows, borders and backgrounds, and saves PNG, JPG, WebP, SVG or PDF. It also writes the LaTeX, the HTML entities and the CSS. Double struck is not a font, so a font cannot be pasted: the characters travel and the reader's device draws them.
How to use the double struck text generator
Your text and the number-set buttons sit at the top. Below, Copy and paste lists every look, Real fonts is the picture studio, CSS gives the code, and Checks tests your device and the length.
Type your text
A word, a name or a formula, up to six short lines. The number-set buttons put ℕ ℤ ℚ ℝ ℂ ℍ ℙ in at the cursor.
Copy a look
11 looks update as you type: standard, capitals only, lowercase only, initials, variables in a sentence, spaced, underlined, struck through and framed. Press Copy on one.
Or make a picture
Real fonts draws the same letters in 3 open math fonts, or in the math font on your own device, and saves PNG, JPG, WebP, SVG or PDF. 4 ordinary fonts can be drawn twice, which is how the style began.
Check it before you post
Checks tests that your device draws the letters, compares the length with a limit, and gives a plain copy for screen readers. CSS writes the rule for your own site.
Which output should you pick?
- A bio, message, comment or name: copy and paste. The result is text, so it can be selected and kept in an edit box.
- A paper, a note or a slide with a formula: the LaTeX row for a TeX document, or the Unicode text for a plain document or an email.
- A poster, thumbnail or social graphic: the picture from Real fonts. It uses a real math font, so it looks the same for everyone.
- A website or an app: the CSS, with the Unicode text in your page.
For other letter styles, see the bold text generator (opens in a new tab), the fraktur font generator (opens in a new tab) and the outline text generator (opens in a new tab).
Why double struck is not a font
A font is a file on a device. Text is a string of character codes, and the app that shows it picks a font from what the device has. When you copy text, only the codes travel. Double struck letters have their own codes in the Mathematical Alphanumeric Symbols (opens in a new tab) block, so they are real characters. That is why they paste, and why their shape changes from one device to another.
The style comes from the chalkboard: a writer draws a letter twice, a little apart, so that it stands out from an ordinary letter in a formula (Wikipedia, Blackboard bold (opens in a new tab)). Print has used it for number sets ever since, and TeX writes it as \mathbb (amsfonts (opens in a new tab)).
The characters
There are 62 double-struck characters: 26 capitals, 26 lowercase letters and 10 digits. The capitals start at U+1D538, the lowercase letters at U+1D552 and the digits at U+1D7D8. Seven capitals are not in that row, because they were already encoded in the Letterlike Symbols (opens in a new tab) block, and the tool uses those:
| Type | You get | Code point |
|---|---|---|
| C | ℂ | U+2102 |
| H | ℍ | U+210D |
| N | ℕ | U+2115 |
| P | ℙ | U+2119 |
| Q | ℚ | U+211A |
| R | ℝ | U+211D |
| Z | ℤ | U+2124 |
The other 55 run in order: 𝔸 𝔹 𝔻 𝔼 𝔽 𝔾 𝕀 𝕁 𝕂 𝕃 𝕄 𝕆 𝕊 𝕋 𝕌 𝕍 𝕎 𝕏 𝕐 𝕒 𝕓 𝕔 𝕕 𝕖 𝕗 𝕘 𝕙 𝕚 𝕛 𝕜 𝕝 𝕞 𝕟 𝕠 𝕡 𝕢 𝕣 𝕤 𝕥 𝕦 𝕧 𝕨 𝕩 𝕪 𝕫 𝟘 𝟙 𝟚 𝟛 𝟜 𝟝 𝟞 𝟟 𝟠 𝟡. Accented letters and other alphabets have no double-struck form, so they stay as typed. A few extra characters exist, such as ⅅ ⅆ ⅇ ⅈ ⅉ for calculus and ⅀ for a sum, and the Real fonts tab has a Symbols panel for them and for common operators.
The copy and paste looks
Standard turns every letter and digit. Capitals only and Lowercase only leave the other case plain, Letters only leaves the digits, and Numbers only leaves the letters. Initials styles the first letter of each word. Variables in a sentence styles a single letter standing alone, such as the x in "let x be in R", and leaves the words plain. Spaced puts a space between letters. Underlined and Struck through add a combining mark after each letter, and Framed wraps the text in ⟦ ⟧.
The combining marks are drawn by the app, and some apps draw them badly or drop them, so those rows say so. The Hide looks with combining marks option removes them.
LaTeX, HTML and code
Open "Copy as LaTeX, HTML or code" under the rows. It gives your text as \mathbb for LaTeX, as HTML entities such as 𝔸, as escapes for JavaScript and JSON, and as a list of code points. \mathbb from amssymb draws capitals only, so for lowercase letters and digits use bbold, dsfont or unicode-math. In a document with unicode-math you can also type the characters themselves.
The Decode box turns double-struck text back into plain letters, which is useful when you receive a line you cannot search.
The real fonts
Only a math font holds the double-struck letters. The open ones here are STIX Two Math, Noto Sans Math, Libertinus Math. All are under the SIL Open Font License 1.1 (opens in a new tab), taken unmodified through Fontsource (opens in a new tab) from Google Fonts (opens in a new tab) and hosted on this site, and loaded with the FontFace API (opens in a new tab) only when you pick one. We checked each font for all 62 characters before shipping it, and the Symbols panel says which extra characters a font lacks (STIX Fonts (opens in a new tab)is the project behind STIX Two Math). The first option draws your device's own math font, such as Cambria Math, which is not hosted here.
Inter, Archivo, Arimo, Work Sans and other ordinary fonts are in the list too, with Draw it twice. That is a drawn effect on plain letters, not the Unicode characters, so the picture is the result and the text is not something you can paste.
The picture is drawn on a canvas and saved with the browser's own canvas export (opens in a new tab)as PNG, JPG or WebP. PNG keeps transparency. The SVG places the open font's file inside it so it looks the same anywhere, and the device font has no file, so its SVG only names the font stack. The studio sets the font, size, spacing, colour, gradient, outline, glow, shadow, border, background and canvas size, including platform sizes, and exports one picture, a ZIP of sizes or texts, or CSS, HTML and React. You can keep up to eight looks as My looks on your device. In the SVG, glow, shadow, scanlines, grain and dark edges are close approximations of the preview.
CSS and the font stack
The CSS tab writes a rule from your studio settings. For double-struck Unicode on your own page, the stack is "Cambria Math", "STIX Two Math", "Latin Modern Math", "Noto Sans Math", serif, as a font-family (opens in a new tab) list: the browser uses the first one the device has. Cambria Math is licensed by Microsoft and cannot be hosted. For an open font the rule includes an @font-face block, and you host the file on your own server, which the licence allows.
When it turns back into plain letters
Unicode defines normalisation forms (opens in a new tab). The compatibility form NFKC replaces many look-alike characters with the ordinary ones they are based on, and every double-struck letter and digit is one of them. A form, a username box or a database that applies it will store plain letters. The tool tests that claim for all 62 characters rather than assuming it. If the styled text must survive, post a picture.
Length and counting
The double-struck characters are outside the Basic Multilingual Plane, so each is two UTF-16 units, except the seven Letterlike capitals, which are one. That is what the length of a JavaScript string (opens in a new tab) counts, and some sites count that way. The tool counts characters or UTF-16 units and compares the result with a limit you choose. Apps count in different ways and limits change, so confirm in the app.
What to keep as plain text
- Hashtags, usernames, email addresses and links. Styled letters make them a different string.
- Anything people search for. A search for the plain word may not find styled text.
- Anything that must be accessible. Screen readers may skip the characters or read each by its Unicode name.
- A picture of text. Add the words as alt text or in the caption.
- A long passage. Styled letters are hard to read in bulk, so keep them to a name, a heading or a symbol.
Checks gives a plain copy to paste next to a styled one.
Licence
The 3 math fonts and the 4 ordinary fonts that this site hosts are under the SIL Open Font License 1.1 (opens in a new tab), which allows use in a logo, a poster or a video, including commercial work, and does not allow selling a font file by itself. Each family keeps its designers' copyright, and the licence file sits beside the fonts. Cambria Math is a Microsoft font and this site does not distribute it.
Privacy
Everything is worked out in your browser. Your text is not uploaded or saved. Your options, favourites and My looks are kept in your browser storage, and nothing leaves your device.
Frequently asked questions
What is double struck text?
Double struck text, also called blackboard bold, is a set of Unicode letters and digits drawn with a doubled vertical stroke, such as 𝔸, 𝕒 and 𝟘. Mathematicians use ℕ, ℤ, ℚ, ℝ and ℂ for the sets of natural, whole, rational, real and complex numbers. This tool turns the letters A to Z, a to z and the digits 0 to 9 that you type into those characters.
Is double struck a font?
No. The result is made of characters, not of a font, so you can paste it into a bio, a chat or a document. The device reading it picks a font that has the characters, and the shape of the letters depends on that font. To fix the exact look, use the Real fonts tab, which draws them as a picture in a named math font.
Why does typing C, H, N, P, Q, R or Z give a different character?
Seven double-struck capitals were encoded in the Letterlike Symbols block before the full set was added. The later block therefore has seven unassigned places, and the tool uses the earlier characters: ℂ ℍ ℕ ℙ ℚ ℝ ℤ. They look the same as the rest. A program that expects every capital in one row of code points has to handle those seven.
Which letters and numbers work?
The 26 capitals, the 26 lowercase letters and the 10 digits, 62 characters in all. Accented letters such as é and ñ, and other alphabets, have no double-struck form, so they stay as typed and the row says which letters were left. The Real fonts tab draws accented Latin letters in the font's own style.
How do I write ℝ, ℕ or ℤ in LaTeX?
Use \mathbb{R}, \mathbb{N} and \mathbb{Z}. The command comes from the amssymb package (amsfonts) and only draws capital letters. For lowercase letters or digits, such as the indicator function 𝟙, use a package that has them, such as bbold, dsfont or unicode-math. The tool writes the \mathbb form of your text and tells you when your text needs more than capitals.
Does it work on Instagram, Discord, X or GitHub?
Often, but test it in the app. These are ordinary Unicode characters, so most apps keep them and draw them with their own fonts. Some places normalise text and turn them back into plain letters. We have not tested every app, and apps change what they accept.
Will search engines or screen readers read it?
Not reliably. A screen reader may skip the characters or read each one by its Unicode name, such as mathematical double-struck capital A. Search that does not normalise treats them as different characters from the plain letters. Keep the words that matter in plain text, and add a plain copy next to a styled one. The Checks tab gives you that copy.
Which math font is best?
STIX Two Math has a traditional book look and holds the whole set, so it is the default. Noto Sans Math is a clean sans and holds the whole set. Libertinus Math has a classic text look. The Cambria Math option uses the font your own device has, which is installed with Microsoft Office and on Windows, and it is never hosted here. Compare them in the studio's font list at the size you will use.
Why can some ordinary fonts be drawn twice?
Blackboard bold started on the chalkboard: writers drew a letter twice, a little apart, to make it stand out from the ordinary one. The Draw it twice option does the same to a normal font by drawing a copy of the text beside it. It is an effect on plain letters, not the Unicode characters, so the result is a picture or CSS and not text you can paste.
Is a hashtag or a username safe to style?
No. A hashtag or a handle in styled letters is a different string from the plain one, so it will not join the same feed, tag the same person or be found by search. The tool warns you when your text has a hashtag, an @ or a link. It only warns.
Can I use the picture in a logo or on a website?
A picture made with an open math font can be used in your own work, including commercial work, under the SIL Open Font License. A picture made with the device font uses a font you may not have the right to redistribute, so check the licence that came with it first. A logo should be your own artwork either way.
Is my text uploaded?
No. Everything is worked out in your browser, including the pictures. Your options, favourites and My looks are kept in your browser storage. Your text is not saved.
Sources
- Unicode chart, Mathematical Alphanumeric Symbols (U+1D400). Primary source for the code points. (opens in a new tab)
- Unicode chart, Letterlike Symbols (U+2100). Primary source for ℂ ℍ ℕ ℙ ℚ ℝ ℤ. (opens in a new tab)
- Unicode Standard Annex #15, Normalization Forms. Primary source for NFKC. (opens in a new tab)
- Wikipedia, Blackboard bold. Background and history, a secondary source. (opens in a new tab)
- CTAN, amsfonts. The package behind \mathbb. (opens in a new tab)
- MDN, String length (UTF-16 code units). (opens in a new tab)
- MDN, font-family. (opens in a new tab)
- MDN, FontFace. (opens in a new tab)
- MDN, HTMLCanvasElement.toBlob(). (opens in a new tab)
- SIL Open Font License 1.1. (opens in a new tab)
- Fontsource, font catalogue and licences. (opens in a new tab)
- STIX Fonts project, the maker of STIX Two Math. (opens in a new tab)
The character set, the seven Letterlike capitals, the NFKC result and the glyph coverage of each font are checked in our tests. How an app or a device draws a character is not something we can test everywhere, and apps change what they accept.
Published: