Skip to content

How to create a sitemap.xml file for Search engines

  • by
  • SEO
Create a Silemap.xml File

In this tutorial, we will learn how to create a sitemap.xml file for Search engines. There is a lot of sitemap automation options but you might want to see how to create it manually. So, read more from the below:

The sitemap for Search Engines is an important rule to follow Google Webmaster Guideline, as it enables Search engine bots to more intelligently crawl and indexing a website’s all landing pages. A sitemap is an XML file that is sorting all live URIs of a website in xml format. Sitemaps for the search engine is necessary for the following cases:

For a Large Website:

If your website is enormous with thousand or so on live URLs, you can provide a sitemap to tell Google about your newly created pages or recent updates.

Website with a big and huge internet archive:

If a website provides a tremendous amount of information that is not interlinking with each other, so you may need a sitemap to sort the URLs with their categories to make it easier for web crawlers to find them quickly.

If you newly launch your website and you have a few external links:

The site seems to important according to the backlinks pointing to your page. If you recently start your website, and you have a few pages and external backlinks, then you can try to submit a sitemap to Google to easily get indexing your webpage’s to the search engine.

If your site provides rich media contents:

A website that is used rich media contents like video, large Images, or other unique materials that need to sort with different search results by Google can use some specified sitemaps to identified about the contents.

A sitemap for the search engine is not only useful for web crawler but also provides essential metadata such as when the how often the webpage changed and when the page last updated, etc. It is also helpful to set the importance of your page according to their relativity in the search result.      

Nowadays, creating a sitemap is very easy. Some SEO tools and plugins can develop auto-generated sitemaps for Search engines. However, the submitting process to a search engine is a little bit tricky. Here’s we are going to provide useful handy information about how you can create or edit a sitemap.

You can create your sitemap using any Seo plugin for WordPress such as All in One SEO or WordPress Seo by Yoast. It is a very method. Just install the plugin and modify the settings.

However, if you are want to create your sitemap manually, you can use This tool is handy to generate a sitemap by just a few clicks. But in this case, after forming a sitemap, you have to upload it to your website root directory as, a .xml format. Make sure that your sitemap is accessible to this URL

Besides the URL’s you can provide essential metadata for videos or images for sorting your webpage content more intelligently. Video sitemaps can offer descriptive information for Google such as video title, description or duration, etc. Image sitemaps for a search engine can provide Geolocation, title’s, caption and central location, etc.

How to create a sitemap.xml file format

If you want to create DIY sitemap.xml you can follow this simple format:

<?xml version="1.0" encoding="UTF-8"?> <urlset xmlns=""> <url> <loc></loc> </url> </urlset>

If you want to include your video and image sitemaps in one file then you can follow this format:

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="" 
      <video:player_loc allow_embed="yes" autoplay="ap=1">
      <video:title>Grilling steaks for summer</video:title>  
        Cook the perfect steak every time.

For mobile sitemap use the extra lines in URLset:


And for news sitemap use this line:


If you have owned a new’s related website, you may create a separate sitemap for news, image and video’s and sorted them all in a main sitemap index file.

You can use this format to create a sitemap.xml file:

That is all about sitemaps for Google and other search engines so far. You can use these methods to create your own sitemap and submit to Google for maximum visibility and achieve targeted audiences.

Interested to create a sitemap.xml file for your website? Please, feel free to contact us! And we will help you to create a perfect sitemap for your website. Thanks for reading!

Leave a Reply

Your email address will not be published. Required fields are marked *