Hack
by Source Foundry
Open-source monospaced typeface for source code with regular, bold, italic and bold italic styles, plus web font files.
Fonts Code libraryOpen source

1. Price: sourcefoundry.org/hack
Free of cost; fonts are free for print, desktop, web and commercial use.
sourcefoundry.org/hackNo quote yet: price is read from the official pages.
2. Commercial use: github.com/source-foundry/Hack/blob/HEAD/LICENSE.md
“to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software”
Unlimited print, desktop, web and software embedding use, commercial or not.
github.com/source-foundry/Hack/blob/HEAD/LICENSE.md3. Credit the author: github.com/source-foundry/Hack/blob/HEAD/LICENSE.md
“The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.”
No credit on screen. Keep the license notice inside the code you ship.
github.com/source-foundry/Hack/blob/HEAD/LICENSE.md4. Agent access: github.com/source-foundry/Hack
An agent can install it by itself with npm install hack-font. No key or account is needed.
github.com/source-foundry/HackLicense checked Nov 9, 2026 against 1 official page. Tap a verdict to see its source. How we checked Report an error
Hack: a free font made for reading code
Hack is a free font for program code, where every character takes the same width. It has regular, bold, italic and bold italic styles, covers Latin, Greek and Cyrillic, and includes the arrow symbols used in fancy terminal prompts. You can install it on your computer or load it on a website, also in paid products.
Where you can use it
Your editor and terminal font
Install it on your computer and pick it in your code editor or terminal, so code is easy to read at small sizes.
Code blocks on a website
Show code samples in docs, a blog or a course in Hack, with bold and italic for highlighting, loaded like any web font.
Terminal prompts with arrow segments
Show a command-line prompt with the arrow and branch symbols that tools like Powerline draw, without patching the font.
A quick web font from a public host
Add Hack to a page with one stylesheet link from a free font host, without uploading any files.
Your own variant of the font
Swap single characters, such as the style of zero, or change the line spacing, and install it under a new name next to the original.
A terminal inside a web app Idea
Use Hack in a browser terminal or code playground, so prompts and output look like a real terminal.
As reported by Source Foundry: Over 1500 glyphs, including extended Latin, modern Greek and Cyrillic.
Hack popularity
Downloads from api.npmjs.org, stars from GitHub, checked Nov 26, 2026. How the Gid Score is calculated
How to start
Tell your AI assistant
“Self-host the Hack web font from hack-font 3.3.0 (copy build/web/hack.css with its fonts folder), use it for pre and code, and keep LICENSE.md next to the font files.”
Show codeStep 2 or Step 3
For a website, link the stylesheet from jsDelivr or cdnjs, or host the CSS and font files yourself.
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/hack-font@3/build/web/hack.css">
Set the font in your CSS.
pre, code { font-family: Hack, monospace; }
Mistakes to avoid
In 3.3.0 the subset regular file has 386 characters and none of them are Greek, Cyrillic or Powerline (the full file has 1548); we checked the font tables in our demo.
The CSS loads the files by relative paths such as fonts/hack-regular.woff2.
@3 follows any future 3.x release; an exact version keeps the page stable.
The Bitstream Vera License requires the notices in all copies and forbids selling the font alone.
The package also carries the design sources and build tools, about 15 MB and 6,505 files in 3.3.0.
License
MIT License (Hack); Bitstream Vera License for the Vera-derived parts. Free for print, desktop, web and apps, including commercial use. Keep the license file with font files you share or ship, and never sell the font files on their own. Rename a changed version so its name has no "Bitstream" or "Vera".
“to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software” github.com/source-foundry/Hack/blob/HEAD/LICENSE.md
“The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.” github.com/source-foundry/Hack/blob/HEAD/LICENSE.md
“to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software” github.com/source-foundry/Hack/blob/HEAD/LICENSE.md
“Bitstream Vera Sans Mono Copyright 2003 Bitstream Inc. and licensed under the Bitstream Vera License with Reserved Font Names "Bitstream" and "Vera"” github.com/source-foundry/Hack/blob/HEAD/LICENSE.md
AllowedWith conditionsNot allowedNot stated or not checked yet
Is Hack free for commercial use? The full answer Not legal advice. Check the license page before you ship.
For your agent
License rules tell your agent what it may do with Hack. Paste them into your prompt or AGENTS.md.
- Hack (Fonts). Open-source monospaced typeface for source code with regular, bold, italic and bold italic styles, plus web font files. Price: free; commercial use OK; no credit needed; pass the files on to your users only with conditions.
Connect: npm hack-font.
Get files: Download the TTF zip from the Hack GitHub releases, or load from the jsDelivr or cdnjs CDN (npm package hack-font) for web use (ttf, woff, woff2).
Not allowed: No copy of the Vera-derived Font Software typefaces may be sold by itself
Not allowed: A modified font must be renamed to a name not containing the words "Bitstream" or "Vera"
Not allowed: Keep the license text with copies you distribute
Rule: Keep the LICENSE file (MIT and Bitstream Vera notices) with any copies of the font you distribute or ship.
Rule: If you modify the font, rename it so the name does not contain "Bitstream" or "Vera".
Rule: Do not sell the Vera-derived font software by itself; selling it as part of a larger software package is allowed.
Rule: For web use, load from the jsDelivr or cdnjs CDN or self-host the woff/woff2 files.
License: https://github.com/source-foundry/Hack/blob/HEAD/LICENSE.md (checked 2026-11-09; details: https://agentgid.com/assets/hack/)
Agent installs a package or loads it from a CDN.
npm install hack-fontFormats: ttf, woff, woff2
Hack font © 2018 Source Foundry Authors (MIT); Bitstream Vera © 2003 Bitstream, Inc.Alternatives
Hack This page
Pick Fira Code when you want ligatures that join common code sequences such as -> and != into one symbol.
Pick Cascadia Code for a coding font with ligatures and a variable font file, plus ready Mono, Powerline and Nerd Font variants.
Pick IBM Plex when the code font should match a sans and serif family used in the rest of the product.
Developer fonts patched with over 10,000 icon glyphs, plus a FontForge script for patching your own fonts.
Open-source monospace coding font with ligatures, Nerd-Font icons and a CN variant, released under the SIL OFL 1.1.
Questions
Can I use Hack in a commercial app or website?
Yes. The fonts may be used for print, desktop, web and software embedding, commercial or not.
Do I need a patched font for Powerline prompts?
No. The Powerline symbols are already in the regular style.
Which languages does it cover?
ASCII, Latin-1, Latin Extended A, Greek and Cyrillic.
Can I modify it?
Yes, and the project offers alternate characters and a renaming tool; a changed version must not use "Bitstream" or "Vera" in its name.