🌙

Font Subset Text Optimizer

Create a minimal string of unique characters from a block of text, perfect for advanced font subsetting.

Unique Characters

About This Tool

For ultimate performance, you can serve a version of a font that contains only the characters you actually use on your site. This process is called subsetting. This tool is the first step: it analyzes a block of text and generates a clean, sorted string of every unique character, which can then be used in advanced font-processing tools like `pyftsubset`.

How to Use

  1. Paste a large block of text from your website (e.g., headings, paragraphs) into the input text area.
  2. The output area will instantly populate with a string containing only the unique characters from your input.
  3. The character count is displayed for your reference.
  4. Copy this string to use in a font-subsetting tool or when specifying a `text=` parameter in the Google Fonts API.

Frequently Asked Questions (FAQs)

When would I use this?

This is an advanced optimization. It's most effective for sites that use display fonts for a very limited set of static text, like a site logo or a main heading. By subsetting to only those characters, the font file size can be reduced by over 90%.

Can I use this output directly with Google Fonts?

Yes. You can append `&text=...` to a Google Fonts URL, pasting the unique character string after the equals sign. Google will serve a font file containing only those glyphs.