Text To Code Ratio Checker
It is important to build optimised web sites, not just on the back end, but on the front end too. This tool will tell you how much code you are using compared to the amount of content that is on your page.
A lot of search engines such as Google base their search results upon relevancy to the content provided. I a page isn't relevant, it won't appear in the search engine results pages (SERPs) as high as a page that is.
If your web page contains too much code, such as HTML, this could prevent a search engine spider from crawling the page in its entirety. Search engine crawlers these days have become much more advanced and are able to check the amount of code there is on a page and compare it to the amount of text as part of its algorithm. If the page is too big, the spider may only capture portions of the page, leaving out possible vital and relevant content.
Type the full URL (including 'http://') of the domain into the form below and we'll run a quick check to see what your text to code ratio is. Please note the percentage you see if the percentage of text to code... if you want to find out the code to text ratio to subtract the text ratio from 100(%).
What do these ratios mean??
Basically, the higher the percentage, the better. Up to a certain point that is. If you've got higher than about 70% or so then you've got a lot of text and not a lot of code, which might sound like a good thing, but could represent spam too. We have added a traffic light colour scheme to the result of your checked page, Red, Amber and Green.
- Red: 0% - 10%
- Amber: 11% to 24% (and 70% +)
- Green: 25% and over and your page is BLOAT FREE and will work well in the SERP's.
Text To Code Ratio Firefox Extension
I have written this tool as an extension to Firefox that you can download here and it will sit in your statusbar (at the bottom right) and each time you load a new page/switch to a new tab it will run in the background and display the text to code ratio for the given current web site.
If you have any comments or would like to leave feedback you can either comment on the add-on page, or leave a comment here and let me know what you think, or what you feel could be improved. I hope you enjoy using this tool as part of your browsing experience with Firefox!
Other Tools
Add Us To Twitter
This Months Most Viewed Articles
- Star Rating Script Php And Mysql Tutorial5182
- Star Rating Script With Yui2893
- Get The Distance Between Two Addresses2569
- Yuilight Spotlight Your Page Elements With Yui1126
- Tweetywall Yui Plug In To Put Twitter Live On Your Website1075
News/Blogs/Articles
Get The Distance Between Two Addresses
Find The Distance Between Two Addresses After having a lot of fun working on the "Find Your Nearest ATM" script I decided to have a go at something...
read moreThoughts About Google+
It's everywhere at the moment. Everyone is talking about it. Not so many have managed to use it yet. I am one of the fortunate ones that has had a f...
read moreFind Your Nearest ATM
Find Your Nearest ATM I have been working on a few scripts recently a little different to the normal ones you might find on DeVSeO. Partly this is...
read moreBlurry Text & Simple Snapshots With HTML & CSS3
I was reading the latest post on Ajaxian and found Marcin Wichary (the creator of the Google Pacman Logo) to be an absolute genius with some very in...
read moreHTML5 Search Inputs - Tips and Tricks
HTML5 has some great new tags and attributes allowing you to do some neat stuff without having to resort to HTML/JavaScript/CSS hacks. Today I learn...
read more

Author: Gustavo Carreno
#1 | 20th Apr 2010 @ 23:03
Issue #1: The addon should have a black list of URLs to avoid parsing since it really doesn't have any content. Things like the about:* should be avoided. There are other examples one should avoid, but it's too late in the evening and I need my beauty sleep!
reply
Author: Alex Hall
#2 | 20th Apr 2010 @ 23:06
Thanks for the feedback Gus. I'll look into that issue as soon as I get some time and try to work out why it is still seeming to try and get the ratio of a page that hasn't loaded/doesn't exist yet.
reply
Author: Gustavo Carreno
#3 | 21st Apr 2010 @ 00:30
I think I got you a bit confused. I'm talking about blank pages and/or pages that are know to not have any SEO content, like about:config, about:blank and others. My suggestion on the DOM loaded event was just a first reaction. Most probably that's not the issue. But I will test it some more, cuz like I said, it's too late and I need me sleep :P
reply
Author: Alex Hall
#4 | 21st Apr 2010 @ 15:39
Ah, I see what you mean. I've made some modifications to it today to hopefully help with that, but I'll to write up a list of 'blank' pages, or pages to ignore so that it doesn't even try to run... otherwise you will always just get an error.
Author: Sebastian
#5 | 30th Aug 2010 @ 10:46
The extension could reload the current page to identify itself as a robot via HTTP_USERAGENT, so the system can deliver the robot version (i.e. without links to redundant print or pdf version)
reply
Author: gordon
#6 | 06th Feb 2011 @ 11:47
what is a 401 error?? is there a list of the error codes
reply
Author: Alex Hall
#7 | 06th Feb 2011 @ 12:41
http://en.wikipedia.org/wiki/ListofHTTPstatuscodes
reply
Author: David
#8 | 29th Jun 2011 @ 14:43
Great tool, thanks!
reply
Author: pqasso
#9 | 06th Sep 2011 @ 17:56
A great and very valuable information about this topic. Thank you very much for sharing.
reply
Author: Inspire by Design
#10 | 11th Sep 2011 @ 18:23
Definitely a must.. thank you for sharing this little tool..
reply
Author: Cosmetology Schools
#15 | 05th Dec 2011 @ 15:06
I tried the domain and text ratio and its great. It gives idea to all web developer to check first their domain or text code before they upload it in a web host. Thanks!
reply