Webpage Word Counter
Paste webpage text or HTML for a local word count. You can try a URL too, but cross-site browser rules may prevent access.

Paste text or HTML
Try a page URL (may be blocked)
Pasted content always works. URL fetch succeeds only when the destination permits cross-origin access.
Non-Common Keywords
| Keyword | Quantity |
|---|---|
| Count content to see results. | |
All Keywords
| Keyword | Quantity |
|---|---|
| Count content to see results. | |
Two ways to count a webpage
Paste visible text or copied HTML for a dependable local count. You can also try a URL, but a browser is not permitted to read every other website's response.
The CORS limit is real
Cross-origin resource sharing is controlled by response headers from the destination site. If a website does not allow your browser origin, the fetch may fail even when the URL opens normally in a tab. This page does not use a proxy or claim to bypass those rules.
Privacy note for URL requests
Pasted text remains in this page. If you use the URL option, your browser sends a request to the website address you entered. That site may receive ordinary request information such as your IP address and user agent.
Why can URL fetching fail? Most websites do not grant cross-origin browser access to their page contents. The browser enforces CORS and same-origin rules; paste the page text or HTML when access is blocked.
Does pasted HTML work? Yes. Paste HTML or plain text and choose Count. For HTML, script, style and non-visible template content are excluded from the extracted text.
Does URL fetching send my text to a server? No pasted text is uploaded. When you try a URL, your browser makes a request to that address; the destination website receives that request.
Can this count a page behind a login? Not reliably. The tool cannot bypass logins, access controls, browser protections or CORS restrictions.
What the pasted-text route can count
The paste option is the dependable route when you already have the text or HTML you want to measure. If you paste visible text, the counter measures the supplied text. If you paste HTML markup, the page parses it in the browser and removes script, style and other non-visible elements before counting the remaining text. That is a practical approximation of page content, not a complete reproduction of a browser's accessibility tree, rendered layout or search-engine extraction process.
A page can contain more than its main article. Navigation labels, footer links, buttons, captions, cookie notices, hidden menus and related cards may all contribute text depending on the extraction method. Before counting, decide whether you want the whole visible page or only the main article. If the purpose is editorial review, copy the article body rather than the entire source code. If the purpose is a broad content inventory, keep the method consistent across every page so that the results can be compared fairly.
The keyword tables count word-like tokens and rank repeated terms. Common words can dominate a raw frequency list, so the page also provides a non-common keyword view. A frequency count does not determine search intent, topical relevance or whether a page is useful. A repeated word may be necessary in a technical guide, while an important concept may appear only a few times. Use the table to identify patterns for editorial review, not as a target for adding keywords unnaturally.
Why a URL may not load
The URL option uses the browser Fetch API to request a page. Browsers enforce the same-origin policy and Cross-Origin Resource Sharing rules. A remote website must permit the requesting page to read its response; if it does not, the browser blocks the response from JavaScript. MDN's CORS guide explains that the server must send the appropriate headers for cross-origin access. This is a browser security rule, not a fault that the counter can bypass by trying again.
Some websites also require a login, block automated requests, redirect to a challenge page, or return content that differs from what a normal visitor sees. A page may load in your browser tab but still refuse to share its response with another origin. The tool cannot read a page simply because its URL is public. If the request fails, use the paste option and copy the visible text from the page yourself.
The Fetch API returns a response that the page can process, and DOMParser can turn HTML text into a document for inspection. These browser interfaces do not remove the server's permission requirements. They also do not guarantee that the fetched HTML matches the final page after client-side scripts, personalisation or lazy loading. A URL count should therefore be treated as a best-effort extraction from the response the browser was allowed to receive.
Privacy and responsible use
Pasted content is processed in the current page. The URL option, by contrast, sends a network request from your browser to the address you enter. That request is visible to the destination website and may include ordinary network information such as your IP address and request headers. Do not enter private or restricted URLs unless you understand the destination's access rules. A browser-local counting tool does not make the remote request anonymous.
For a fair comparison, use the same extraction method and include or exclude the same page elements each time. Record whether you counted the full page, the main article or a pasted excerpt. If you are checking a page against an editorial limit, follow the organisation's own counting instructions. Some systems count navigation or metadata differently, and some treat hyphenated terms, symbols or headings in their own way.
The tool is not a crawler, site auditor or SEO ranking predictor. It does not discover every page, inspect canonical URLs, evaluate structured data, or tell you why a search engine indexed a page. It counts text from one supplied source at a time. Use a proper crawler or analytics platform for a site-wide audit, and use the result here as a quick measurement of the text you actually supplied.
The URL route depends on browser standards: MDN explains Cross-Origin Resource Sharing, the Fetch API, and DOMParser. These interfaces do not override a remote server’s cross-origin permissions.
Further reading: MDN — Cross-Origin Resource Sharing; MDN — Using Fetch; MDN — DOMParser.