# Hreflang Generator for Next.js

> Generate hreflang alternates for i18n Next.js routes.

Free tool: https://mars.cx/tools/hreflang-generator-for-nextjs

For i18n Next.js apps, output reciprocal hreflang alternates for each locale route.

## How to use

1. Add each language and URL.
2. Copy the hreflang tags.
3. Paste them into the page head.

## FAQ

### What is x-default?

The fallback page for users whose language isn't matched.

### Hreflang vs canonical?

Use hreflang for language variants; each still has its own self-referencing canonical.

### Is it free?

Yes, free with no signup.

Provided by MarsGeo — https://mars.cx