Skip to main content
Creative Aspirant
  • Tools

Font Tools

  • Full Width Text Generator
  • Vaporwave Text Generator
  • Halloween Font Generator
  • Rockwell Font Generator
  • Garfield Font Generator
  • Clarendon Font Generator
  • WWE Font Generator
  • All Font Tools →

Text Effect Studios

  • Jujutsu Kaisen Font Generator
  • Gold Font Generator
  • Colorful Text Generator
  • Minecraft Font Generator
  • Spidey Font Generator
  • Transparent Text with Shadow Generator
  • Glitter Font Generator
  • More Text Effect Studios →

Company

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Service
  • Disclaimer
  • Cookie Policy
  • Accessibility
Creative Aspirant

© 2026 Creative Aspirant. All rights reserved.

  1. Home
  2. Tools
  3. Font Comparison Tool
AaGgRr

Free online tool

Font Comparison Tool

On this page

  • How to use
  • Why same size misleads
  • Match x-height
  • Measured proportions
  • Overlay and guide lines
  • Your own text
  • Pair a heading and body
  • Contrast and PNG
  • Compare by letter
  • Fallback fonts
  • Your own files
  • Privacy
  • FAQ
  • Sources

At a glance. Compare 2 to 6 of the 1,940 Google Fonts, or your own font files, with your own text. Compare at the same size or at the same x-height, overlay fonts on a shared baseline, check the letters one by one and read measured proportions. Code for the weights you choose is one click away. Your text and files stay in your browser.

How to compare fonts

This tool puts fonts next to each other with the same text, so you can judge them on what you will really set. Nothing is scored. You get a fair view and the measured numbers behind it.

  1. 1

    Pick 2 to 6 fonts

    Search the Google Fonts list in each box, or add your own font file.

  2. 2

    Add your text

    Type, paste or upload a TXT, MD, HTML or CSV file. Or try a pangram or an interface sample.

  3. 3

    Choose how to compare

    Same font size, same x-height or same cap height. Side by side, stacked or overlaid.

  4. 4

    Read and copy

    Check the measured proportions and the letters, then copy the code for the weights you want.

Why the same font size can mislead

Font size sets the height of the em box, not the height of the letters. Each design places its lowercase letters differently inside that box, so two fonts at 40 px can look very different in size. web.dev shows this with Verdana and Arial at 16 px, and MDN calls the ratio the aspect value.

Here is the height of the lowercase letter x, as a share of the font size, in a few Google Fonts. At 40 px, Poppins' x is about 22 px tall and EB Garamond's is about 16 px.

x-height of eight Google Fonts as a share of the font size
Fontx-height
Bebas Neue70.0%
Merriweather55.5%
Poppins54.8%
Inter54.6%
Open Sans53.5%
Roboto52.8%
Lora50.0%
EB Garamond40.5%

Read from the outline of the letter x in each font's regular weight (Google Fonts static TTF files), checked on 11 November 2026. Font updates can change these values slightly. The tool above measures any font you pick, so you do not need this table.

Match x-height or cap height

Size matching takes Font 1 as the reference and scales fonts 2 and up so a chosen letter height lines up. Each pane shows the size it ended up at.

  • Same x-height suits body text, where lowercase letters make up most of what people read.
  • Same cap height suits headings, all-caps labels, logos and buttons.
  • Same font size shows what you get if you simply change the font-family in CSS.

Matching one letter height does not make fonts look identical. As one article on comparing fonts puts it, matching x-height can make fonts with wider letters look much bigger. Use the average letter width in the Metrics tab and your own eyes together.

Measured proportions, not scores

The Metrics tab lists, for each font at the weight you are previewing:

  • x-height and cap height, as a share of the font size
  • x-height to cap height, which says how tall lowercase is next to capitals
  • ascender and descender depth
  • average lowercase letter width, weighted by how often each letter appears in English
  • the height of a line at line-height: normal
  • the font-size-adjust value for the font

Your browser draws the letters x, H, d and p and the tool measures the ink, so the numbers describe the font as it appears on your screen, to about 0.2% of the font size. Brackets show the difference from Font 1. There is no overall score, because the right font depends on the job.

Overlay and guide lines

Overlay draws 2 or 3 fonts in different colours on top of each other, with their baselines lined up, so you can see where shapes and proportions differ. It shows the first line of your text. Guide lines add the baseline, the x-height of each font and, in the side by side and stacked layouts, the cap height.

Overlay lines up the baseline, not the letters. Fonts with different widths drift apart along the line, which is part of what it shows.

Test with your own text

Real copy shows problems that a pangram hides: long words, numbers, accents and awkward line breaks. Type or paste up to 5,000 characters, or upload a TXT, MD, HTML or CSV file up to 1 MB. You can also drop a file on the fonts card. HTML tags and Markdown marks are removed, so you see the words only. Word, PDF and RTF files are not read. Copy the text out of them and paste it in.

Long text is shown a few lines at a time. Use Lines to show in the display options to see more. The file is read on your device and is never uploaded.

Pair a heading and body font

The Pairing tab sets the first line of your text in one font as a heading and the rest in another as body copy. Swap them, set a weight for each, and preview them as an article, a hero block or a small interface card. It reports how much taller or shorter the body font's lowercase letters are than the heading font's, and can match them for you. Each font can have its own weight and italic in the Options of its box. For ready-made suggestions, try the font pairing tool⁠ (opens in a new tab).

Contrast, size ramp and PNG

Pick light, dark or sepia colours, or your own. The tool shows the WCAG 2 contrast ratio and whether it passes AA and AAA for the size and weight shown. WCAG counts text as large from 24 px, or from about 18.7 px when bold, and large text needs a lower ratio. Thin weights on dark backgrounds can look weak even when the ratio passes, and the tool says so.

The Sizes tab shows the first line of your text at 12 to 72 px in every font. Download PNG saves the comparison as an image, drawn in your browser with the fonts you picked.

Compare by letter

The Letters tab draws one character in every font at once. Pick capitals, lowercase, numbers, punctuation, accents or the look-alikes set. The look-alikes set (I, l, 1, |, O, 0 and similar) is a quick legibility check for interface text, codes and passwords. If a font has no glyph for a character, the browser draws it in another font, so watch for a cell that looks out of style.

Code and fallback fonts

The Code tab writes an HTML link, CSS variables, a Tailwind CSS v4 theme, next/font code, font-size-adjust and a fallback font block. It only requests the weights you choose, and uses the right generic family, such as serif or monospace.

font-size-adjust is supported in current browsers (MDN lists it as Baseline since July 2024). The fallback block uses size-adjust and the ascent, descent and line-gap overrides to make a local font take the same room as the web font. MDN lists the overrides as limited availability, and they are measured on your device, so test them elsewhere. Do not use font-size-adjust and size-adjust together, because MDN notes that size-adjust then has no effect.

If you use Next.js, next/fontself-hosts Google Fonts, so visitors' browsers send no requests to Google, according to the Next.js docs. Looking for pairs instead? Try the font pairing tool⁠ (opens in a new tab).

Compare your own font files

Add a TTF, OTF, WOFF or WOFF2 file up to 8 MB to compare a brand font, a purchased font or a candidate from another foundry with Google Fonts. The browser reads the file from your device. For TTF, OTF and WOFF files the tool also shows which characters of your text the font is missing and the licence text stored in the file.

A licence that allows you to install a font does not always allow you to put it on a website. Check the licence you were given before you use a font file online.

Private by design

Your text, your settings and your font files never leave your browser, and your text is not saved. Only the display options stay in your browser storage. The Google fonts you pick are loaded from Google's servers by your browser, as on any site that uses Google Fonts. A share link contains your text only when you press Share link, cut to the first 400 characters, and never contains your own font files. Text files you upload are read on your device and are not sent anywhere.

Frequently asked questions

How do I compare two fonts side by side?

Pick a font in each of the first two boxes, type your text and look at the Compare tab. You can add up to six fonts. Side by side puts them in columns, Stacked puts one under another, and Overlay draws 2 or 3 fonts on top of each other on a shared baseline.

Why do two fonts look different in size at the same font size?

Font size sets the height of the em box, not of the letters. Each design places its letters differently inside that box, so the height of lowercase letters (the x-height) varies from font to font. A font with a taller x-height looks bigger at the same size. MDN and web.dev both describe this as the aspect value of a font.

What does Same x-height do?

It scales fonts 2 and up so the lowercase letters are as tall as in Font 1. The size shown on each pane tells you the result. This is usually a fairer way to compare fonts for reading text. Fonts with wider letters can still look bigger at the same x-height, so use your eyes as well as the numbers.

When should I match cap height instead?

Match cap height when capitals matter most: headings, all-caps labels, logos and buttons. Match x-height for body text, where lowercase letters make up most of what people read.

How are the measurements taken?

Your browser draws the letters x, H, d and p on a canvas, and the tool measures the ink. Widths and line metrics come from the browser's text measurement. Ink is measured to about 0.2% of the font size, and values can differ slightly between browsers and operating systems. They are measurements of the font as your browser draws it, not scores.

Is there a score or a best font?

No. Which font is better depends on the job, the audience and the screen. The tool gives you measured facts, like x-height and average letter width, and lets you see the text at the same apparent size. It does not rate fonts out of 100.

How do I compare fonts letter by letter?

Open the Letters tab, pick a set (capitals, lowercase, numbers, punctuation, look-alikes or accents) and click a character. It is drawn large in every font, each in its own colour. The Look-alikes set shows characters that can be confused, such as I, l and 1.

Can I compare my own font files?

Yes. Use Add my own font file, or Use my own file in any box. TTF, OTF, WOFF and WOFF2 files up to 8 MB work. The file is read in your browser and is never uploaded. For TTF, OTF and WOFF files the tool also reads the name, licence text, variable axes and which characters the font has. It cannot read the extra details of WOFF2 files, though the preview and measurements still work.

Does it work with variable fonts?

The weight control works for variable and static Google fonts, and it only offers weights a font really has. Other axes, such as width, slant and optical size, are not adjustable yet. For your own variable font files, the weight control follows the weight range in the file.

Can this help reduce layout shift when a web font loads?

It gives you the numbers. The Code tab has a font-size-adjust value for each font, and a fallback font block with size-adjust and ascent, descent and line-gap overrides measured against Arial, Times New Roman or Courier New on your device. MDN lists the metric overrides as limited availability, and other systems draw the fallback differently, so test the result.

Which weights does the code include?

Only the weight you are previewing, plus any you tick in the Code tab. A font only gets weights it actually has, so a single-weight font is never asked for a bold it does not have. For next/font, variable fonts get no weight option, as the Next.js docs recommend.

Can I upload my own text?

Yes. Use Upload a text file for TXT, MD, HTML or CSV files up to 1 MB, drop a file on the fonts card, or paste into the text box. The tool keeps the first 5,000 characters and strips HTML tags and Markdown marks. Word, PDF and RTF files are not supported, so copy the text out of them and paste it in.

How do I pair a heading font with a body font?

Open the Pairing tab. The first line of your text becomes the heading and the rest is the body. Choose a font for each, swap them, set a weight for each and view them as an article, a hero block or an interface card. The tool shows how much the lowercase letters differ in height and can match the body size to the heading.

Does the tool check colour contrast?

Yes. It shows the WCAG 2 contrast ratio between your text and background colours and whether it passes AA and AAA for the size and weight shown. Large text, from 24 px or 18.7 px bold, needs a lower ratio. A pass on contrast does not make a thin font easy to read, so the tool also warns about thin weights on dark backgrounds.

Can I download the comparison as an image?

Yes. Download PNG draws your text in each font on a canvas, with each font's name and size, and saves it to your device. It uses the fonts already loaded in your browser, so wait for the previews to load first.

Is my text sent to a server?

No. Your text, settings and font files stay in your browser. Settings are kept in your browser storage and your text is not. The Google fonts you pick are loaded from Google's servers by your browser, as with any Google Fonts use. A share link contains your text only when you press Share link, and only the first 400 characters of it.

Sources

  • web.dev, CSS font-size-adjust is now in Baseline (opens in a new tab)
  • MDN, font-size-adjust (opens in a new tab)
  • MDN, ascent-override (and the other font metric overrides) (opens in a new tab)
  • Next.js documentation, fonts (opens in a new tab)
  • Normalize Fonts for Comparison (quotenil.com) (opens in a new tab)

The x-height table was produced by reading the Google Fonts static TTF files with opentype.js. The count of 1,940 Google Fonts is the size of the list this tool searches.

Last updated: 11 Nov 2026

Explore Related Tools

Font Pairing Generator (opens in a new tab)Serif Font Generator (opens in a new tab)Sans Serif Font Generator (opens in a new tab)Typewriter Font Generator (opens in a new tab)

Related tools

More free text and font tools

  • Font Pairing GeneratorPair Google Fonts, preview your text, copy the code (opens in a new tab)
  • Serif Font GeneratorElegant serif Unicode text for branding & editorial (opens in a new tab)
  • Sans Serif Font GeneratorSans serif text, 24 open fonts & a picture studio (opens in a new tab)
  • Typewriter Font GeneratorTypewriter text to copy, 19 real typewriter fonts and a typing GIF maker (opens in a new tab)