Canonical url generator
You must enter the correct or preferred url of your webpage to generate a canonical url link tag.
Canonical url:
What is a canonical url link element?
A canonical url is the url of a webpage that you want search engines to index as the main version of a webpage when your site contains multiple urls with the same or similar content.
What does a canonical url link tag do?
It prevents search engines to use or index any unwanted urls of a webpage, by using the canonical link element you are communicating with search engines that which url should be treated as the main version of a webpage. This helps search engines to index your preferred url version of a webpage rather than using multiple urls with the similar or same content.
Where to place a canonical link element?
The canonical link tag should be placed inside the Html document's <head> section only for the corresponding webpage. This will help search engines to index and use the specified url or preferred url for that webpage rather than using different urls. For example:
Example canonical url link code
<head>
<title>
Title of a webpage
</title>
<link rel="canonical" href="https://example.com/page">
</head>
Canonical url link example
For example, let's say that your website has a page about best cars available at https://example.com/best-cars. Your canonical link element can be for the specified page:
<link rel="canonical" href="https://example.com/best-cars">
You must then take this canonical url link element and put it in the <head> section of your html document. This canonical tag should be placed on the correct page and will represent the url you want searh engines or users to use as the main version of your webpage.
How to use this canonical url generator tool?
You first enter your preferred url of your webpage into the input box above. Please make sure that you use urls that begin with http or https only, other urls will be rejected. Then click the generate button to generate the canonical element, the tool will check that the url is correct and will place the generated url in the white box above. You must then take this tag and place it in the html document <head> section of the corresponding webpage and press clear to generate another tag.