Check Broken Links

The Check Broken Links Bookmarklet is an essential tool for link analysis and site maintenance.

With one click, this bookmarklet analyzes all links on the page and categorizes them as internal or external.

Perfect for quick link audits and site maintenance. No more manual inspection - just click and analyze!

javascript:!function(){const n=document.querySelectorAll("a[href]"),t=window.location.hostname,e=[],o=[];n.forEach((n=>{const i=n.href;if(i.startsWith("http"))try{new URL(i).hostname===t?e.push({url:i,text:n.textContent.trim(),element:n}):o.push({url:i,text:n.textContent.trim(),element:n})}catch(n){console.error("Invalid URL:",i)}}));const i=document.createElement("div");i.style.cssText="\n        position: fixed;\n        top: 20px;\n        right: 20px;\n        width: 80%;\n        max-width: 800px;\n        max-height: 80vh;\n        background: white;\n        padding: 20px;\n        border-radius: 8px;\n        box-shadow: 0 2px 10px rgba(0,0,0,0.1);\n        z-index: 10000;\n        overflow-y: auto;\n    ";const r=document.createElement("div");r.innerHTML=`\n        <h2 style="margin-top: 0;">Link Analysis</h2>\n        <div style="margin-bottom: 20px;">\n            <button onclick="this.closest('.seo-popup').remove()" style="float: right;">Close</button>\n        </div>\n        <div style="margin-bottom: 20px;">\n            <h3 style="margin: 0 0 10px 0;">Summary</h3>\n            <p style="margin: 0;">Total links found: ${n.length}</p>\n            <p style="margin: 5px 0 0 0;">Internal links: ${e.length}</p>\n            <p style="margin: 5px 0 0 0;">External links: ${o.length}</p>\n        </div>\n        <div style="margin-bottom: 20px;">\n            <h3 style="margin: 0 0 10px 0;">Internal Links</h3>\n            <div style="margin: 0; max-height: 200px; overflow-y: auto;">\n                ${e.map((n=>`\n                    <div style="margin-bottom: 10px; padding: 10px; background: #f5f5f5; border-radius: 4px;">\n                        <a href="${n.url}" target="_blank" style="text-decoration: none; color: #333;">\n                            <strong>${n.text||"No text"}</strong>\n                            <p style="margin: 5px 0 0 0; font-size: 0.9em;">${n.url}</p>\n                        </a>\n                    </div>\n                `)).join("")}\n            </div>\n        </div>\n        <div style="margin-bottom: 20px;">\n            <h3 style="margin: 0 0 10px 0;">External Links</h3>\n            <div style="margin: 0; max-height: 200px; overflow-y: auto;">\n                ${o.map((n=>`\n                    <div style="margin-bottom: 10px; padding: 10px; background: #f5f5f5; border-radius: 4px;">\n                        <a href="${n.url}" target="_blank" style="text-decoration: none; color: #333;">\n                            <strong>${n.text||"No text"}</strong>\n                            <p style="margin: 5px 0 0 0; font-size: 0.9em;">${n.url}</p>\n                        </a>\n                    </div>\n                `)).join("")}\n            </div>\n        </div>\n        <div style="margin-bottom: 20px;">\n            <h3 style="margin: 0 0 10px 0;">Validation</h3>\n            <p style="margin: 0;">To check for broken links, use a tool like <a href="https://www.deadlinkchecker.com/" target="_blank">Dead Link Checker</a> or <a href="https://www.ahrefs.com/broken-link-checker" target="_blank">Ahrefs Broken Link Checker</a>.</p>\n        </div>\n    `,i.classList.add("seo-popup"),i.appendChild(r),document.body.appendChild(i)}();
Drag me to bookmark bar: 👉🏻 Check Broken Links

This tool streamlines your link analysis by:

This essential tool makes link analysis effortless. Perfect for content managers, SEO professionals, and anyone who needs to maintain site quality. Simply click the bookmarklet to instantly analyze all links on a page. Helps you quickly identify potential broken links and ensure better site maintenance and user experience.