Is Google Bot indexing the content of a textarea?

For one of my projects that provides pages with different content in a textarea, I need to make sure that Google Bot is indexing the content of those textareas.

I could not find an answer online. Only the same question, unanswered, from 2006.

If it does not index textareas, I’d need to output a second hidden DIV to make Google Bot see and index the content. Or I output a DIV and use Jquery to turn it into a textarea for the users.


I did a test with “Fetch as Google” in the webmaster console, this is the result:

fetch as google for textarea

And in the “Fetch” section I see the HTML source with the textarea.

But is that an indicator for the indexing?

Here is Solutions:

We have many solutions to this problem, But we recommend you to use the first solution because it is tested & true solution that will 100% work for you.

Solution 1

If that content is very important and should bring SEO traffic, I wouldn’t put it into the textarea. It’s better to put it into pre or samp. If the content should be editable, add the contentEditable attribute or use JavaScript to inject a textarea. The problem is that although the GoogleBot indexes the content of textarea and even displays it on search results, this content is ignored when searching for documents. To prove it, I did some tests.

Test #1

Search by page title: Page found. HTML textarea Tag
Is Google Bot indexing the content of a textarea?

Test #2

Search by form content: Page found. Fill the Detail
Is Google Bot indexing the content of a textarea?

Test #3

Search by textarea content: Page not found. Enter your name
Is Google Bot indexing the content of a textarea?

Test #4

Search by input value: Page not found. Submit
Is Google Bot indexing the content of a textarea?

Maybe there are some things that I did not take into account. However, I would not take risks to put important content into textarea. On the other hand, if you decide to check it out, please do not forget to share your results.

Solution 2

Textarea is part of the HTML and yes, Googlebot can see your HTML and index anything inside textarea.

Solution 3

If your site is not rendering correctly using Google Fetch then your content is not being scored as it should. Google renders the page and ensures the page is readable, just as a real-life visitor. You need to fix your code and ensure that it renders both correctly for visitors and Google via the Google fetch tool.

Code related issues can be solved on Stack Overflow.

Note: Use and implement solution 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from or, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply