Variable Font Tester

This free variable font tester lets you explore variable fonts right in your browser. Browse popular families or upload your own, then drag a live 2D controller to adjust weight, width, slant, optical size, and any custom axes on a real canvas. Pick named instances, preview your text instantly, and copy the exact font-variation-settings CSS. Everything runs client-side, so your fonts stay private and never leave your device.

100% private — runs in your browser
Upload font
Variable fonts interpolate smoothly between design extremes.

Click the canvas and type — changes apply live.

Size waterfall

Browse 500+ Google variable fonts, upload your own, or start with featured picks — drag the 2D controller or sliders to explore the design space.

How to use the variable font tester

  1. Pick a font. Choose from the list of popular variable fonts, or drag and drop your own .ttf, .otf, .woff, or .woff2 file onto the canvas to load it instantly.
  2. Type your preview text. Replace the sample with your own headline, paragraph, or pangram so you can judge the font in real context.
  3. Move the axes. Drag the sliders, or use the 2D controller to adjust two axes at once — for example weight against width — and watch the type respond live.
  4. Try named instances. Click a preset like Regular, Bold, or Condensed to jump straight to a designer-defined style.
  5. Fine-tune custom axes. If the font exposes extra axes such as grade or optical size, adjust them to dial in the exact look you want.
  6. Copy the CSS. Hit copy to grab the ready-made font-variation-settings declaration and paste it into your stylesheet.

What variable fonts are and how axes work

A variable font packs an entire type family into a single file. Instead of shipping separate files for Light, Regular, Bold, and every width in between, the font stores one master design plus a set of axes that interpolate smoothly between extremes. Each axis is a continuous range, so you are no longer limited to a handful of fixed weights — you can land on any value along the line, including positions the type designer never named.

An axis is identified by a four-character tag and a numeric range. Weight, for instance, uses the tag wght and commonly runs from 100 to 900. By combining several axes, one file can produce thousands of styles. The variable font tester above exposes every axis a font ships with, so you can see how each one reshapes the letterforms.

The registered axes (plus custom axes)

The OpenType specification defines five registered axes that behave consistently across fonts. Fonts may also define their own custom axes — things like grade, contrast, or a serif-to-sans transition — which use uppercase four-letter tags to set them apart from the registered ones.

Axis tagControlsTypical range
wghtWeight — thickness of the strokes, from thin to black1–1000 (often 100–900)
wdthWidth — how condensed or expanded the letters are, as a percentage50–200 (100 = normal)
slntSlant — an oblique lean, measured in degrees-90 to 90 (often -15 to 0)
italItalic — a switch between upright and a true italic design0 or 1
opszOptical size — adjusts detail and contrast for the size of the textVaries, e.g. 6–144

You set these directly with the low-level font-variation-settings property. A combined declaration might read font-variation-settings: "wght" 620, "wdth" 85, "opsz" 28; — three axes adjusted in one line. The tester writes this string for you as you move the controls, so you never have to guess the tag names or remember the syntax.

Why variable fonts help performance and motion

Because a single variable font replaces what used to be many static files, browsers download one resource instead of four, six, or more weight files. That means fewer network requests, less total data, and faster text rendering — a real win for page speed. You also get every weight and width in between for free, so designs can use a wider typographic palette at no extra download cost.

Variable fonts also unlock fluid and animated typography. Since axes are continuous numeric values, you can transition or animate them with CSS, scaling weight with viewport size or easing a label from regular to bold on hover — smooth motion that was not possible when each style lived in its own file.

Named instances vs. custom axis values

Type designers can mark specific axis combinations as named instances — familiar presets such as Regular, Bold, Condensed, or Black. These are the styles that show up in a font menu, the safe, designer-approved coordinates. The tester lists them as one-click presets so you can start from a known-good point.

Beyond the named instances, you are free to choose any custom value along an axis. Want a weight of 540 that sits between the usual Medium and Semibold? You can. For the registered axes, you also have high-level CSS shortcuts: font-weight maps to the wght axis and font-stretch maps to the wdth axis (as a percentage), while font-style: italic and font-style: oblique 14deg map to ital and slnt. Use these high-level properties when you can, since they inherit and cascade naturally; reach for font-variation-settings when you need precise or custom-axis control.

Animating variable font axes with CSS

Because every axis is a continuous number, you can move it over time with the same CSS you would use for color or position. The simplest approach is a transition: set a starting value, then change it on a state like :hover and let the browser interpolate.

For a hover that thickens and slightly condenses a heading, you might write h1 { font-variation-settings: "wght" 300, "wdth" 100; transition: font-variation-settings 0.3s ease; } h1:hover { font-variation-settings: "wght" 750, "wdth" 88; }. Keep the same axes in the same order on both rules, otherwise the browser cannot match them up and the animation will jump instead of glide.

For looping motion, drive the axis with @keyframes: @keyframes breathe { from { font-variation-settings: "wght" 200; } to { font-variation-settings: "wght" 800; } } applied with animation: breathe 2s ease-in-out infinite alternate. Use the tester above to find two axis coordinates you like, then drop those values straight into your keyframes.

Axis animation repaints text on every frame, which can tax low-powered devices. Hint the browser with will-change: font-variation-settings on the animated element, but add it only while the animation is active, since a standing hint wastes memory. For decorative loops, pause them when the text scrolls out of view with an IntersectionObserver so the work stops the moment it is off screen.

High-level shortcuts and fonts worth testing

Reach for a plain CSS property whenever one exists, because those inherit and cascade normally and degrade gracefully on browsers that ignore an axis. The low-level font-variation-settings is best reserved for custom axes or precise fractional values. This table maps the high-level properties to the registered axis each one drives.

High-level CSS propertyEquivalent axis
font-weightwght
font-stretch (as a percentage)wdth
font-style: italicital
font-style: oblique 14degslnt
font-optical-sizing: autoopsz

font-optical-sizing: auto is the default and lets the browser tune the optical size axis to the rendered text size for you. To see how much range one file can hold, load a few well-known variable fonts into the tester: Roboto Flex carries weight, width, slant, optical size, and a dozen fine-tuning axes; Recursive glides between sans and monospace and from upright to casual; Fraunces exposes a softness and a playful “wonk” axis; and Inter offers tightly drawn weight and slant for interface work.

Frequently asked questions

What is a variable font?

A variable font is a single font file that contains a whole family of styles. Rather than separate files for each weight or width, it stores one design with adjustable axes that interpolate between the extremes, letting one file produce many — sometimes thousands — of distinct styles.

What are font axes?

Axes are the adjustable dimensions of a variable font. Each has a four-letter tag and a numeric range. The five registered axes are weight (wght), width (wdth), slant (slnt), italic (ital), and optical size (opsz). Fonts can also include custom axes for effects like grade or contrast.

What is the difference between font-variation-settings and font-weight?

font-weight is a high-level property that maps to the wght axis and cascades like any normal CSS property. font-variation-settings is the low-level control that can set any axis — including custom ones — by tag. Prefer the high-level properties for common cases and use font-variation-settings when you need fine or custom-axis control.

Do browsers support variable fonts?

Yes. Variable fonts and font-variation-settings are supported across all current major browsers, including Chrome, Edge, Firefox, and Safari. For older browsers you can supply a static fallback through your @font-face stack.

Can I animate font axes?

You can. Because axis values are numeric, they can be animated or transitioned with CSS, so weight, width, or slant can shift smoothly on hover, on scroll, or in response to viewport size. This is the basis of fluid and animated typography that static fonts cannot achieve.

How do I copy the CSS?

Adjust the axes until the preview looks right, then click the copy button. The tester hands you a complete font-variation-settings declaration with the exact tags and values, ready to paste into your stylesheet or design tokens.

Can I upload my own font?

Yes. Drag and drop your own .ttf, .otf, .woff, or .woff2 file onto the canvas. The tester reads the font’s axes directly and lets you explore them just like the built-in examples.

Is it private, offline, and free?

Completely. The variable font tester runs entirely in your browser — your fonts are never uploaded to a server. It is free to use, works without an account, and keeps everything client-side and private.

How do I animate a variable font?

Set font-variation-settings to one value, then change it on a state or in @keyframes, and add a transition or animation so the browser interpolates between the coordinates. List the same axes in the same order in both the start and end states, or the change will snap rather than glide.

Does animating variable fonts affect performance?

It can, because the text repaints on every frame. Add will-change: font-variation-settings only while an animation runs, prefer transitions over endless loops, and use an IntersectionObserver to pause animations once the text scrolls off screen so the browser stops doing the work.

What are some good variable fonts to try?

Roboto Flex is a great all-rounder with many axes, Recursive shifts between sans and monospace, Fraunces adds expressive softness and “wonk” axes for display type, and Inter is tuned for user interfaces. Load any of them into the tester above to explore their axes hands-on.

Related design tools & guides