← All text tools

CSS Tooltip Generator

Build a pure CSS tooltip with position, arrow, colors, size and a hover animation, with a live preview and the HTML and CSS to copy.

  • Free
  • No sign-up
  • Works on any device

About CSS Tooltip Generator

Make a tooltip that needs no JavaScript. The text sits in a data-tooltip attribute and a ::after pseudo-element shows it with content: attr(data-tooltip), while a ::before element draws an optional arrow with the border triangle trick. Choose top, bottom, left or right, the arrow size, colors, padding, font size, whether the text wraps, a fade or slide animation and a delay before it appears. The tooltip shows on hover and, if you leave the box ticked, on keyboard focus. Try it in the preview, then copy the CSS and the one line of HTML.

How to use CSS Tooltip Generator

  1. Type the tooltip text and choose where it appears and whether it has an arrow.
  2. Adjust colors, padding, font size, animation and delay while watching the preview above the result.
  3. Copy the CSS into your stylesheet and the HTML onto the element that should show the tooltip.

Why use this tool?

Also known as

Frequently asked questions

Can screen readers read a CSS-only tooltip?

Not reliably, because the text lives in a pseudo-element. Keep essential information in visible text or an aria-label, and use a CSS tooltip for extra hints only.

Why is the tooltip cut off at the edge of a container?

A parent with overflow set to hidden or auto clips it. Remove that overflow, or choose another position so the tooltip opens toward free space.

Does it work on touch screens?

A tap usually triggers the hover state once, which shows the tooltip until you tap elsewhere. Because that is not dependable on every device, never hide required information in a tooltip.

Is CSS Tooltip Generator free?

Yes. CSS Tooltip Generator on Toolipedia is free to use, with no sign-up and no watermark.

Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

Can I put CSS Tooltip Generator on my own website?

Yes. Use the Embed on your site button under the tool to copy a short piece of code and paste it into your page. It is free, needs no account, and the tool keeps working inside your page.

Related tools