Text-to-Code Ratio of a Page

Checks the ratio of text size on the page to its total size.

All search engines assess the ratio of the amount of content on a page to the total amount of code in the entire HTML document. That is, the ratio of content size (all text on the page) to the code size of the entire page.

There is no specific threshold ratio below which a site is considered bad and above which it is considered good, it may exist but no one knows it, but it is known that the less code on the page and the more unique text, the higher the likelihood that your page will rank higher in search engine results. You must understand that for search engines, textual content is important, not the beauty of the site, so when designing, try to reduce the number of unnecessary tags on the page, because a large number of DOM objects slows down the page rendering speed (display speed). The faster the page displays, the higher it is in search engine results.

This service allows you to find out the percentage ratio of text on the page (useful content in the understanding of search engines) to the total size.

The service will show the text-to-code ratio when the original sizes were taken in bytes and when in characters. One character of Latin text is equal to one byte, in UTF-8 encoding it will also weigh 1 byte. But, for example, Cyrillic characters (letters of the Russian alphabet) in UTF-8 encoding will already weigh 2 bytes. For these reasons, the ratio in characters will differ from the ratio in bytes.