Interest per Day Calculator

SEO Keyword Density & Content Analyzer

Enter your content below to analyze keyword frequency and optimize your page for search engines. Professional SEO analysis helps prevent keyword stuffing and ensures semantic relevance.

Analysis Results

Word Count 0
Unique Words 0
Est. Read Time 0m
Keyword Count Density (%)
function analyzeSEOContent() { var text = document.getElementById('seoContentInput').value.trim(); if (!text) { alert('Please enter some text to analyze.'); return; } var words = text.toLowerCase().match(/\b(\w+)\b/g); if (!words) return; var wordCount = words.length; var freqMap = {}; var stopWords = ['the', 'and', 'a', 'to', 'of', 'in', 'is', 'it', 'with', 'for', 'on', 'as', 'at', 'by', 'an', 'be', 'this', 'that', 'from']; for (var i = 0; i 2 && stopWords.indexOf(word) === -1) { freqMap[word] = (freqMap[word] || 0) + 1; } } var sortedWords = []; for (var word in freqMap) { sortedWords.push([word, freqMap[word]]); } sortedWords.sort(function(a, b) { return b[1] – a[1]; }); document.getElementById('resWordCount').innerText = wordCount; document.getElementById('resUniqueWords').innerText = sortedWords.length; document.getElementById('resReadTime').innerText = Math.ceil(wordCount / 200) + ' min'; var tbody = document.getElementById('densityTableBody'); tbody.innerHTML = "; var limit = Math.min(sortedWords.length, 10); for (var j = 0; j < limit; j++) { var keyword = sortedWords[j][0]; var count = sortedWords[j][1]; var density = ((count / wordCount) * 100).toFixed(2); var row = tbody.insertRow(); var cell1 = row.insertCell(0); var cell2 = row.insertCell(1); var cell3 = row.insertCell(2); cell1.style.padding = '10px'; cell1.style.borderBottom = '1px solid #edf2f7'; cell1.innerText = keyword; cell2.style.padding = '10px'; cell2.style.borderBottom = '1px solid #edf2f7'; cell2.innerText = count; cell3.style.padding = '10px'; cell3.style.borderBottom = '1px solid #edf2f7'; cell3.innerText = density + '%'; } document.getElementById('seoResults').style.display = 'block'; } function clearSEOContent() { document.getElementById('seoContentInput').value = ''; document.getElementById('seoResults').style.display = 'none'; }

Leave a Comment