Stax
Tools

Text to Slug Generator

Convert any title or text into a clean, SEO-friendly URL slug.

SEPARATOR
CASE
TRY EXAMPLES

良い URL スラグの条件とは?

スラグのベストプラクティス

ハイフン vs アンダースコア:どちらを使うべきか?

よく作られた URL スラグは SEO とユーザーエクスペリエンスの両方を向上させます。検索エンジンはスラグをページコンテンツに関する強力なシグナルとして読み取り、説明的なスラグはユーザーがクリックする前にページのトピックを理解できるため、検索結果でのクリック率が高くなります。

公開向けの URL やブログ記事には、常にハイフン(-)を使用してください。ハイフンはウェブ URL の標準であり、検索エンジンによって単語区切りとして認識されます。アンダースコアは、SEO が懸念事項でない内部技術識別子(データベースフィールド、API クエリパラメーター)に適しています。

ブログ著者は WordPress、Ghost、または Webflow に公開する前に記事タイトルをスラグに変換します。開発者は Shopify などの e-commerce プラットフォームで製品カタログ URL 用のスラグを生成します。CMS 編集者はきれいなカテゴリとタグの URL を作成するために使います。ローカリゼーションチームは多言語サイト用に翻訳されたページタイトルを URL セーフなスラグに変換します。API デザイナーはユーザーが送信した名前からスラグを生成して、一意の共有可能なリソース識別子を作ります。

URL がインデックスされると、スラグの変更は既存のリンクを壊し、ランキングを損なう可能性があります。スラグを変更しなければならない場合は、古い URL から新しい URL への 301 永続的リダイレクトを設定してください。リダイレクトがなければ、古い URL へのすべてのインバウンドリンクと検索エクイティが失われます。ベストプラクティス:ページが公開される前に最終的なスラグを選択し、永続的として扱う。事前にスラグを計画する際、公開前にこのツールを使用してください。

アクセント記号付き文字(é、ü、ñ、ō)と非 ASCII スクリプト(デーヴァナーガリー文字、中国語、アラビア語)はスラグで慎重に扱う必要があります。このツールは Unicode NFD 正規化を使用してアクセント記号付き文字を基本文字に分解します — 例えば「café」は「cafe」になります。ほとんどのウェブサーバーと CMS プラットフォームが ASCII スラグを想定しているため、非ラテンスクリプトは削除されます。Unicode スラグが必要な場合(ヒンディー語や地域言語コンテンツで一般的)、エンコードされた URL をサポートするようにサーバーと CMS を設定してください。

  • 小文字のみを使用する
  • 単語はハイフンで区切る(アンダースコアではなく)
  • 特殊文字と句読点を削除する
  • 60 文字以内に抑える
  • 主要キーワードを含める
  • 不要なストップワード(a、an、the、and、or、but)を削除する
  • コンテンツが時間的制約を受ける場合を除き、日付を避ける

よくある質問

What is a URL slug?
A URL slug is the part of a URL that identifies a specific page in a human-readable way. For example, in the URL example.com/blog/how-to-build-great-products, the slug is 'how-to-build-great-products'. Slugs are lowercase, use hyphens instead of spaces, and contain only alphanumeric characters.
Why do slugs use hyphens instead of spaces or underscores?
Google's John Mueller has confirmed that hyphens are treated as word separators in URLs, making individual words identifiable by search engines. Underscores are treated as word joiners (combining words into one). Spaces are percent-encoded (%20) which is less readable. Hyphens are the SEO-recommended separator for most CMS platforms including WordPress, Ghost, and Shopify.
How long should a URL slug be?
There is no hard limit, but SEO best practice is to keep slugs under 60 characters. Shorter, more descriptive slugs tend to rank better and are easier to share. Remove stop words like 'a', 'an', 'the', 'and', 'or' to keep slugs concise without losing meaning.
Should I use lowercase for URL slugs?
Yes — always use lowercase for URL slugs. Mixed-case URLs can cause duplicate content issues if the server treats /Blog/Post and /blog/post as the same page but Google indexes them as separate URLs. Most web servers and CMS platforms enforce lowercase slugs by default.
What happens to special characters in slugs?
Characters outside the safe URL set (letters, digits, hyphens, underscores) should be removed or replaced. Accented characters (é, ü, ñ) are first normalized to their base ASCII equivalent (e, u, n) using Unicode normalization (NFD decomposition). Punctuation, symbols, and non-Latin scripts are stripped out.

関連ツール