CSS Tooltip Generator

Generate CSS tooltips with arrow positioning, animations, colors, and sizes.

  1. Home
  2. Web Dev
  3. CSS Tooltip Generator
Hover me
Tooltip text here

What is a CSS Tooltip?

A CSS tooltip is a small pop-up box that appears when a user hovers over an element, providing additional information or context. Pure CSS tooltips use the ::after pseudo-element and :hover selector — no JavaScript required.

This tool features:

  • Four positions — Top, Bottom, Left, and Right.
  • Three animations — Fade, Slide, and Scale entrance effects.
  • Customizable appearance — Background, text color, font size, border radius, and arrow size.
  • Presets — Common tooltip styles for quick setup.

How to Use

  1. Choose position — Select where the tooltip appears relative to the trigger.
  2. Customize colors — Pick background and text colors.
  3. Adjust size — Set font size, arrow size, max width, and border radius.
  4. Set text — Enter the trigger and tooltip text.
  5. Copy the CSS — Click Copy CSS and add the .tooltip class to your HTML.

Frequently Asked Questions

Do I need JavaScript for this tooltip?

No. The generated CSS uses only the :hover pseudo-class and ::after pseudo-element. No JavaScript required.

Can I use HTML inside the tooltip?

The content property in CSS only accepts plain text. For HTML content inside a tooltip, you would need additional markup and JavaScript.