Ubuntu Mono

Ubuntu Mono font preview
Replaces: Comic Mono (68%) | UFL-1.0 | Updated: Jan 2026

About Ubuntu Mono

Classification
mono
Weights
400, 700
Features
Italics
Ubuntu Font License 1.0

Similar to OFL, designed for Ubuntu fonts. Free for commercial use.

What's allowed?
  • Client work
  • SaaS / Web apps
  • YouTube / Video
  • Sell products
  • Print materials

Note: Derivative fonts must use the same license.

Full license guide →
Get Ubuntu Mono Free ↗

Ubuntu Mono is a monospace typeface designed by Dalton Maag as part of the Ubuntu font family. Released in 2010 for the Ubuntu operating system, it has become a popular choice for coding environments and terminal applications.

History and Design

Dalton Maag designed Ubuntu Mono alongside the broader Ubuntu font family, commissioned by Canonical for the Ubuntu Linux distribution. The design reflects the Ubuntu brand's character—human, professional, and approachable. The monospace variant maintains these qualities while providing the fixed-width spacing essential for code and terminal use.

Why Ubuntu Mono is Popular

Ubuntu Mono has gained popularity beyond the Linux community as a versatile coding font. It serves as a free alternative to proprietary monospace fonts like Consolas. Its friendly character, excellent legibility, and comprehensive language support make it suitable for developers working in diverse environments.

Technical Features

  • Two weights: Regular and Bold
  • True italics: Distinct cursive forms for code highlighting
  • Fixed width: Equal character spacing for code alignment
  • Extensive language support: Latin, Cyrillic, and Greek scripts
  • OpenType features: Ligatures and contextual alternates

Best Use Cases

Ubuntu Mono excels in:

  • Code editing: Clear, readable code presentation
  • Terminal applications: Comfortable for command-line work
  • Documentation: Code snippets in technical writing
  • Data displays: Fixed-width tables and logs
  • Multilingual development: Projects requiring Cyrillic or Greek

Usage Tips

For coding, use Regular weight at 13-16px depending on screen density. Use Bold sparingly for syntax highlighting. Enable ligatures if your editor supports them for operators like => and !=. The friendly character makes it suitable for longer coding sessions. Pairs naturally with Ubuntu Sans for mixed content.

Alternative For (1)

Ubuntu Mono is a free alternative to the following premium fonts:

[Shannon Miwa] · mono

Friendly mono style

View all alternatives →

How to Use Ubuntu Mono

Copy these code snippets to quickly add Ubuntu Mono to your project.

CSS Import

@import url('https://fonts.googleapis.com/css2?family=Ubuntu+Mono:wght@400;700&display=swap');

HTML Link Tags

<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Ubuntu+Mono:wght@400;700&display=swap" rel="stylesheet">

Tailwind CSS

// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      fontFamily: {
        'ubuntu-mono': ['"Ubuntu Mono"', 'sans-serif'],
      },
    },
  },
}

// Usage in HTML:
// <p class="font-ubuntu-mono">Your text here</p>

React / Next.js

// Using next/font (Next.js 13+)
import { Ubuntu_Mono } from 'next/font/google';

const ubuntu_mono = Ubuntu_Mono({
  subsets: ['latin'],
  weight: ['400', '700'],
});

export default function Component() {
  return (
    <p className={ubuntu_mono.className}>
      Your text here
    </p>
  );
}

// Or using inline styles with Google Fonts link:
// <p style={{ fontFamily: '"Ubuntu Mono"' }}>Your text</p>