Utvikling · verktøy

XML-sitemapgenerator fra URL-er

Lim inn én absolutt URL per linje. Verktøyet kontrollerer URL-ene og lager XML lokalt.

Kjøres i nettleseren. Ingen opplasting.

Values are processed locally in this browser.

Result

—

Om verktøyet

XML-sitemapgenerator fra URL-er sem complicação.

Verktøyet crawler ikke sider, tester ikke indekserbarhet og verifiserer ikke canonical-URL-er. Ta bare med de offentlige URL-ene du foretrekker, og valider resultatet før utrulling.

Veiledning

Slik bruker du XML-sitemapgenerator fra URL-er

The XML Sitemap Generator turns a list of web addresses into a sitemap file in the standard XML format. You paste one full address per line, press Calculate and copy the XML. It checks that each line is a valid http or https address and lists each one only once. It does not visit your site, find pages on its own, test whether pages can be indexed, or add dates or priorities.

Slik gjør du

  1. Paste your page addresses into the box, one per line. Each must start with http:// or https://. Use the version of the address that you want search engines to prefer.
  2. Press Calculate. The tool checks every line, removes repeats and writes the XML.
  3. Copy the result and save it as a UTF-8 file named sitemap.xml. Upload it to your site, in the folder that covers the pages you listed.
  4. Tell search engines where it is, by submitting it in a webmaster tool or adding a Sitemap line to your robots.txt file, then open the file in a browser to see that it loads.

Eksempler

Three lines with one repeat

Du skriver inn
Adresser
https://example.com/ https://example.com/about https://example.com/about
Du får
URL-oppføringer
https://example.com/; https://example.com/about

The second /about line is a repeat, so it is listed once. The result is an XML document with a urlset element and one url entry, each holding a loc tag, for every address that is left.

Kjørt med verktøyets egen kode.

A query string and a non-English letter

Du skriver inn
Adresser
https://example.com/search?q=a&page=2 https://example.com/Café
Du får
Adresse 1
https://example.com/search?q=a&page=2
Adresse 2
https://example.com/Caf%C3%A9

The ampersand is written as & because XML needs it escaped, and the letter é is turned into %C3%A9. Both changes keep the file valid and the addresses working.

Kjørt med verktøyets egen kode.

A line with no https

Du skriver inn
Adresser
example.com/about
Du får
Melding
Page must be a complete URL.

Each line must be a complete address with its protocol. A line without http:// or https:// stops the whole run with this message. Addresses that contain a username or password are also refused.

Kjørt med verktøyets egen kode.

Når det er nyttig

  • Make a first sitemap for a small hand-built site with a short list of pages.
  • Turn a list of pages exported from a spreadsheet into sitemap XML.
  • Create a quick sitemap for a temporary campaign site.
  • Clean a list of addresses that has repeats before it goes into a sitemap.

Begrensninger

  • You can paste 1 to 5,000 addresses per run. The sitemap standard allows up to 50,000 URLs and 50 MB in one file, so larger sites need several files and an index.
  • The tool does not crawl or test anything. It cannot tell whether a page exists, redirects, is blocked, or is set to noindex.
  • Each entry has only the loc tag. There is no lastmod, changefreq or priority field. Google says it ignores priority and changefreq, and uses lastmod only when it is accurate.
  • Mixed hosts, mixed http and https, and addresses with a # part are all accepted without a warning. The standard says every URL in a sitemap must come from one host.

Tips

  • List only public pages you want in search results. Leave out redirects, duplicate versions and pages set to noindex.
  • Use one host and one protocol throughout, the same one you have chosen as canonical for your site.
  • Delete any # part from an address before you paste it, since the tool keeps it in the output.

Kilder

Vanlige spørsmål

Sobre XML-sitemapgenerator fra URL-er.

Where do I put the sitemap file?

Upload it to your site, usually in the root as /sitemap.xml. The sitemap standard says the location of the file decides which addresses it may list, so a file in /shop/ can only list addresses that start with /shop/.

How many addresses can one sitemap hold?

The sitemap standard and Google both allow up to 50,000 URLs and 50 MB uncompressed in one file. This tool stops at 5,000 per run, so split a bigger list into several runs and several files.

Does the tool crawl my website?

No. It only works with the list you paste. It never opens the addresses, so it cannot find new pages or check them. Use a crawler or your site's own page list to build the input.

Do I need lastmod, priority or changefreq?

They are optional, and this tool does not write them. Google ignores priority and changefreq, and uses lastmod only if it is consistently accurate. A plain list of loc entries is a valid sitemap.

Why were some of my lines removed?

Addresses are tidied by the browser first, for example a bare domain gets a trailing slash and the host is made lower case, and repeats are then listed once. So HTTPS://Example.COM and https://example.com/ become one entry.

How do I tell Google about the sitemap?

Google lists three ways: submit it in Search Console, use the Search Console API, or add a line such as Sitemap: https://example.com/sitemap.xml to your robots.txt file. Then check Search Console for errors.

Is my list of addresses uploaded?

No. The page says the tool checks the addresses and creates the XML locally. The addresses are only read as text and are not opened.

Hvordan bruker du XML-sitemapgenerator?

Lim inn én absolutt URL per linje. Verktøyet kontrollerer URL-ene og lager XML lokalt.

Lastes dataene mine opp til en server?

Nei. Behandlingen skjer i nettleseren din, og opplysningene dine lastes ikke opp.