Monu Tools

URL Slug 生成器

将任意标题转换为整洁、对 SEO 友好的 URL slug,并处理德语变音字母。

如何使用 Slug 生成器

  1. 01

    输入或粘贴标题。每一行都会成为各自的 slug。

  2. 02

    选择分隔符,以及是否转为小写和展开德语变音字母。

  3. 03

    复制生成的 slug。

What it does

This URL slug generator turns a title into the clean, readable part of a web address. It transliterates accented letters to ASCII, lowercases the text, and replaces spaces and punctuation with a single separator, so "My First Post!" becomes my-first-post.

Everything runs in your browser, so your titles are never uploaded.

What a slug is

A slug is the human-readable identifier in a URL, the my-first-post in example.com/blog/my-first-post. Good slugs are short, lowercase and made of letters, numbers and hyphens, which is both tidier for people and clearer for search engines.

German umlaut handling

It handles German umlauts the way German sites expect: with German mode on, ä, ö and ü become ae, oe and ue and ß becomes ss. With it off, accents are simply stripped, so ä becomes a, which suits other languages.

Options and batch slugs

You can choose the separator and whether to lowercase. Hyphens are the recommended default because search engines read a hyphen as a word separator but an underscore as a word joiner, so hyphenated slugs rank and read better.

Each line of input is processed separately, so you can paste a whole list of titles and get a clean slug for every one in a single step, handy when setting up many pages or importing content.

常见问题

什么样的 URL slug 是好的?

保持简短和小写,单词之间用连字符,并只使用字母、数字和连字符。搜索引擎将连字符识别为单词分隔符。

如何处理德语字符?

开启德语模式后,ä、ö、ü 变为 ae、oe、ue,ß 变为 ss。关闭后,重音符号会被直接去除(ä 变为 a)。

为什么用连字符而非下划线?

Google 将连字符视为单词分隔符,而将下划线视为连接符,因此连字符是 SEO 推荐的选择。如果你的系统需要,也可使用下划线。

嵌入此工具

将此工具添加到你自己的网站。复制下方代码片段即可,它会自动保持最新。

<iframe src="https://monu.tools/embed/zh/slug-generator" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>

相关工具