CSS Font Style Generator - Customize Text Styles & Google Fonts
Design and customize your text effortlessly with this powerful Online CSS Font Style Generator. It provides a simple way to create professional typography styles with real-time preview and instant CSS code output.
You can easily adjust font-size, word-spacing, letter-spacing, line-height, font-weight, font-style, text-decoration, and text-align to match your design requirements. The tool also allows you to transform text using text-transform options like uppercase, lowercase, and capitalize.
For more advanced styling, you can use font-variant features such as unicase, all-small-caps, petite-caps, and small-caps to enhance typography appearance. Additionally, select from standard font family options or explore a large collection of 999+ Google Fonts to create unique and visually appealing text styles for your projects.
Contents
Use this tool to quickly customize and preview text styles for your website or projects. Simply adjust options like font-size, spacing, alignment, weight, and text transformations, then choose your preferred font family or Google Font. The tool instantly generates clean CSS code, allowing you to copy and apply the styles directly without manual coding.
HTML and CSS code:
Control how text appears using text-transform. You can convert text to uppercase, lowercase, or capitalize the first letter of each word for better readability and design consistency.
Preview:
uppercase text example
LOWERCASE TEXT EXAMPLE
capitalize text example
<p class="uppercase">uppercase text example</p>
<p class="lowercase">LOWERCASE TEXT EXAMPLE</p>
<p class="capitalize">capitalize text example</p> .uppercase {
text-transform: uppercase;
}
.lowercase {
text-transform: lowercase;
}
.capitalize {
text-transform: capitalize;
} Apply decorative effects like underline, overline, or line-through to highlight or modify text appearance. You can also customize decoration style and color.
Preview:
Underline text
Overline text
Line through text
<p class="underline">Underline text</p>
<p class="overline">Overline text</p>
<p class="line-through">Line through text</p> .underline {
text-decoration: underline;
text-decoration-style: solid;
text-decoration-color: #ff0057;
}
.overline {
text-decoration: overline;
text-decoration-style: dotted;
text-decoration-color: #0027ff;
}
.line-through {
text-decoration: line-through;
text-decoration-style: dashed;
text-decoration-color: #00b145;
} Enhance typography using font-variant to control the display of characters such as small caps and stylistic variations for a more refined text look.
Preview:
Small Caps Text Example
All Small Caps Text Example
<p class="small-caps">Small Caps Text Example</p>
<p class="all-small-caps">All Small Caps Text Example</p> Use Google Fonts to apply custom typography to your text. By adding the font link to your HTML, you can easily use fonts like 'Annie Use Your Telescope' and style your content with a unique handwritten look for headings, paragraphs, or decorative text.
Preview:
This is Google font style example
<!-- Google Font Link -->
<link href="//fonts.googleapis.com/css?family=Annie+Use+Your+Telescope" rel="stylesheet" type="text/css">
<p class="google-font">This is Google font style example</p>