All guides

How to See the Current Tailwind Breakpoint on Any Website

Show the active Tailwind CSS breakpoint and the viewport width in a corner of the page as you resize, without adding any code.

Updated November 18, 2026

When a responsive layout looks off, the first thing you need to know is which breakpoint is active. Tailwind CSS doesn't show it, and DevTools only gives you the window width, so you end up comparing pixels against sm, md and lg in your head. Breakpoint Viewer puts the answer on the page: a small badge in the corner shows the active breakpoint and the viewport width, and updates as you resize.

How to show the current breakpoint

  1. Install Breakpoint Viewer for Chrome or Firefox.
  2. Open any website, or your local dev server such as http://localhost:3000.
  3. Resize the window or use the DevTools device toolbar. The badge shows the breakpoint name, its min-width and the current width, for example lg, 1024px and up, at 1180px.
  4. Click the toolbar icon to move the badge to another corner or turn it off.

Breakpoint Viewer badge in the corner of a page showing the lg breakpoint at a viewport width of 1180px

Tailwind's default breakpoints

PrefixApplies from
none0px, every screen
sm640px
md768px
lg1024px
xl1280px
2xl1536px

Tailwind is mobile first: md:flex applies from 768px up, not only between 768px and 1023px.

The code snippet way, and its catch

A common trick is a debug element in your layout:

<div class="fixed right-2 bottom-2 z-50 rounded bg-black px-2 py-1 text-xs text-white">
  <span class="sm:hidden">xs</span>
  <span class="hidden sm:inline md:hidden">sm</span>
  <span class="hidden md:inline lg:hidden">md</span>
  <span class="hidden lg:inline xl:hidden">lg</span>
  <span class="hidden xl:inline 2xl:hidden">xl</span>
  <span class="hidden 2xl:inline">2xl</span>
</div>

It works, but you have to add it to every project, remember to remove it before you ship, and you can only use it on sites whose code you control. Breakpoint Viewer needs no code, works on any website, and can never end up in production.

Bootstrap, Bulma, Foundation or your own breakpoints

Click the toolbar icon and choose a Preset for Bootstrap, Bulma or Foundation. For your own media queries, edit the breakpoint names, widths and colors so the badge matches your project.

To show the badge only where you need it, set Show on websites to Only these and add a pattern such as localhost.

FAQ

Does it read my Tailwind config?

No. It compares the viewport width with the breakpoints you set. If your project uses custom screens, enter the same widths in the extension.

Does the badge change the page?

No. It floats above the page and doesn't touch the layout or styles.

Is it free?

Yes. Breakpoint Viewer is free and open source. No account, and no data leaves your browser.