Toggle Element Visibility Bookmarklet
Hover and click to hide ads, popups, banners or any element on a page, with Undo and Restore all. Ideal for clean screenshots and printing. Free.
On a phone? Use Copy code, then save it as a bookmark's URL — step-by-step guide.
Toggle Element Visibility lets you point at anything on a page and make it disappear. Hover to highlight an element, click to hide it. Sticky chat widgets, cookie banners, newsletter popups, ads, sidebars or a single distracting image: gone with one click, without installing an ad blocker or writing CSS.
Every hidden element is listed in the panel with its selector, so nothing is lost. Undo the last one, bring back a specific element, or restore everything at once. Hidden elements are removed from the layout, so the remaining content reflows naturally, which makes this perfect for clean screenshots, screen recordings, printing an article or presenting a page in a meeting.
Developers use it too: hide one component at a time to find out which one causes a layout shift, a scrollbar or an overlap. Close the panel and the hidden elements stay hidden until you reopen it or reload.
What it does
- Hover highlight with a label showing
tag#id.classand size - Click hides the element (
display: none !important) and blocks the click action - Panel lists hidden elements with a Show button for each
- Undo last and Restore all buttons; original inline styles are restored exactly
- Hidden elements stay hidden after closing; reopening the panel shows the list again
How to install the Toggle Element Visibility bookmarklet
- Show your bookmarks bar. Press
Ctrl+Shift+Bon Windows/Linux orCmd+Shift+Bon a Mac (Chrome, Edge, Brave, Firefox). In Safari choose View › Show Favorites Bar. - Drag the blue button above onto the bar. That's it — the bookmark now holds the code.
- Open any website and click the bookmark to run it on that page. Click it again to close it.
Can't drag (phone, tablet, locked-down browser)? Copy the code below, create any bookmark, then edit it and paste the code as its URL. See how to add a bookmarklet in every browser.
How to use it
- Click Toggle Element Visibility in your bookmarks bar.
- Hover over the page; the element under the cursor is outlined in red.
- Click to hide it. Repeat for anything else you want gone.
- Use Undo last, Show or Restore all in the panel; press Esc to stop picking.
Picking the right element
The outline shows exactly what will be hidden. Overlays are often made of two parts, a dark backdrop and the dialog, so you may need two clicks. If the page also locks scrolling while a popup is open, hide the popup and then use Sticky Header Killer, which also restores scrolling. Hiding is purely visual and lasts until you reload; sites that re-render components with JavaScript may bring an element back. Hidden elements are remembered while the tab stays open, so you can close the panel, take your screenshot and reopen it later to restore them.
Bookmarklet code
This is the exact code inside the button above (6,935 characters). It runs only in your browser and sends nothing to us. Paste it into the Bookmarklet Decoder to read it formatted.
Frequently asked questions
Does hiding an element delete it?
No. It only sets display:none on it. You can show it again from the panel or by reloading the page.
Can I hide things inside iframes?
You can hide the whole iframe, but not individual elements inside a cross-origin iframe.
Will links still work while the tool is active?
Clicks are captured to hide elements, so links do not navigate. Press Esc to exit and use the page normally.
Related bookmarklets
Free Sticky Header Killer bookmarklet: unsticks fixed headers, hides cookie banners and overlays, and re-enables…
Hover any element to see its tag, ID and CSS classes, then click to copy a unique CSS selector. A free bookmarklet for…
Free Remove Embed iframe bookmarklet: deletes every iframe, embed and object (ads, videos, widgets) from the page, then…
Free Remove Images bookmarklet: hides every image, picture, SVG image and CSS background for distraction-free reading.…