Tools In
Browser

Text to Slug

Free text to slug converter online. Turn titles into URL-friendly slugs with separators, stop words, max length, and batch mode. Runs in your browser.

Sep:
Case:
Max:
Need the JS function? Click here
function slugify(text, separator = "-") {
  const esc = separator.replace(/[.*+?^${}()|[\]\\-]/g, "\\$&");
  return text
    .toLowerCase()
    .trim()
    .normalize("NFD")
    .replace(/[\u0300-\u036f]/g, "")
    .replace(/[^\w\s-]/g, "")
    .replace(/[\s_]+/g, separator)
    .replace(new RegExp(`[${esc}]+`, "g"), separator)
    .replace(new RegExp(`^[${esc}]|[${esc}]$`, "g"), "");
}

How to Use This Tool

1

Enter a Title

Type or paste a title in single mode, or switch to Batch mode and enter one title per line for bulk conversion.

2

Set Your Options

Pick a separator (hyphen, underscore, dot, or custom), choose the case, turn on stop word removal, or set a max length.

3

Copy the Slug or URL

The slug generates instantly. Copy the slug alone or the full URL with your custom base domain.

4

Fine-Tune if Needed

In single mode, you can edit the generated slug directly. Click Reset to auto-generated to revert your changes.

Frequently Asked Questions

Is this tool really free?

Yes, completely free with no limits, no sign-up, and no watermarks. Everything runs in your browser.

Is my text uploaded to a server?

No. Your titles and slugs never leave your device. All processing happens directly in your browser.

What is a slug?

A slug is the URL-friendly version of a title. It turns text like 'My Blog Post Title!' into 'my-blog-post-title' for use in web addresses.

What separators are available?

Hyphen (-), underscore (_), dot (.), or a custom separator of your choice (up to 3 characters). Hyphens are recommended for SEO.

What does stop word removal do?

It strips common filler words like 'the', 'and', 'is', 'of' from the slug. This makes slugs shorter and more focused on keywords.

What does max length do?

It limits the slug to a maximum number of characters. The tool cuts at word boundaries so words are never split in half.

Can I edit the slug manually?

Yes. In single mode, the slug field is editable. You can fine-tune it and click Reset to go back to the auto-generated version.

Can I convert many titles at once?

Yes. Switch to Batch mode and enter one title per line. All slugs are generated simultaneously with copy buttons for the full set.

Does it handle accented characters?

Yes. Accented and special characters like e with accent, n with tilde, and ss ligature are automatically converted to their plain equivalents.

Will my text be saved if I refresh?

Yes. Your input is saved on your device automatically. Click Clear All to wipe everything.

What Is Text to Slug?

Text to Slug is a free tool that turns titles and headings into clean, URL-friendly slugs right in your browser. Pick a separator, choose the case, strip stop words, set a max length, and see the slug update live. Single mode lets you edit the slug directly; Batch mode converts many titles at once. No server uploads, no external calls, 100% private.

Accented characters are automatically converted to plain equivalents so slugs work everywhere. The URL preview shows exactly how the slug will look with your domain, and you can copy the slug or the full URL in one click.

Features Explained

Single and Batch Modes

Single mode converts one title with an editable output. Batch mode converts many titles at once, one per line, with bulk copy buttons.

Separator Options

Choose hyphen (-), underscore (_), dot (.), or type a custom separator up to 3 characters. Hyphens are recommended for SEO.

Case Conversion

Lower converts everything to lowercase (best for URLs). Upper converts to uppercase. As Is preserves the original case.

Stop Word Removal

Strips common filler words like the, and, is, of to make slugs shorter and more keyword-focused.

Max Length with Word Boundaries

Set a character limit and the slug is truncated at the nearest word boundary so words are never cut in half.

Editable Slug Output

In single mode, you can edit the generated slug directly for fine-tuning. Click Reset to go back to the auto-generated version.

URL Preview

Shows the slug appended to a base URL you can customize, so you see exactly how the final web address will look.

Accented Character Handling

Characters like e with accent, n with tilde, u with umlaut, and ss ligature are automatically converted to plain equivalents.

Copy Slug and Copy URL

Copy just the slug or the full URL in one click. In batch mode, copy all slugs or all URLs at once.

100% Browser-Based Processing

All slug generation happens directly in your browser. Your titles are never uploaded to any server.

Who Is This Tool For?

Bloggers

Generate clean URL slugs for blog posts and articles before publishing.

Web Developers

Create URL-safe identifiers for routes, file names, and endpoints.

SEO Specialists

Optimize URL structure with keyword-focused, concise slugs.

Content Managers

Batch-generate slugs for CMS imports, migrations, and bulk publishing.

E-commerce Sellers

Create product URL slugs that are clean, consistent, and search-friendly.

Marketing Teams

Generate campaign page URLs that are short, memorable, and trackable.

WordPress Developers

Generate custom slugs for posts, pages, and custom post types.

Copywriters

Create URL-friendly titles for landing pages and ad campaigns.

Freelancers

Generate slugs for client websites and CMS entries as part of your workflow.

Technical Writers

Create clean URL slugs for documentation pages and knowledge base articles.

Social Media Managers

Generate short, readable URLs for link sharing across platforms.

Journalists

Create clean slugs for news articles and feature stories.

Podcast Hosts

Generate URL slugs for episode pages and show notes.

Teachers

Create clean page URLs for course materials and learning platforms.

Students

Generate slugs for portfolio projects and personal websites.

Non-Profit Workers

Create clean URLs for campaign pages and donation landing pages.

Event Planners

Generate slugs for event pages, registration forms, and ticketing URLs.

Real Estate Agents

Create clean listing page URLs from property titles and addresses.

HR Professionals

Generate slugs for job posting pages and career site URLs.

Architects

Create clean project page URLs from project names.

Musicians

Generate slugs for album pages, song pages, and event listings.

Photographers

Create clean gallery and portfolio page URLs from photo series titles.

Authors

Generate book page slugs from titles for author websites.

Anyone

Turn any title into a clean, URL-friendly slug for any purpose.

Slug Best Practices

PracticeRecommendation
Use lowercaseAlways use lowercase for consistency and search engine optimization
Use hyphens as separatorsSearch engines treat hyphens as word separators but not underscores
Keep it short3 to 5 words or under 60 characters is ideal
Include target keywordsPut important keywords early in the slug
Remove stop words'best-coffee-shops' is better than 'the-best-coffee-shops-in-town'
Avoid special charactersStick to letters, numbers, and hyphens only
Use plain charactersConvert accented characters to their plain equivalents for maximum compatibility
Make it readableA person should understand the page topic from the slug alone
Do not change published slugsChanging slugs breaks existing links and hurts search rankings
Match the page titleThe slug should closely reflect the page title or heading

Tips for Best Results

Remove stop words for shorter slugs

Enable stop word removal to strip filler words like 'the', 'and', 'of' and keep only meaningful keywords.

Set a max length for search engines

Search results display roughly 60 characters of a URL. Set the max length to 60 or less so the full slug is visible.

Use batch mode for migrations

When migrating a website or importing content, paste all your titles in batch mode to generate all slugs at once.

Edit slugs for precision

Auto-generated slugs are a great starting point. Fine-tune them by editing directly to remove redundant words or add a keyword.

Stick to one separator style

Pick hyphens, underscores, or dots and use the same separator across your entire site for consistency.

Preview with your actual domain

Replace the example base URL with your real domain to see exactly how the final URL will look.

Hyphens are best for search engines

Search engines treat hyphens as word separators but do not treat underscores the same way. Use hyphens for the best ranking signal.

Accented characters are handled automatically

Characters like cafe with accent, tilde n, and umlaut u are converted to plain equivalents so slugs work in every browser.

Copy the full URL in one click

Click Copy URL to grab the complete web address including your base domain, not just the slug.

Privacy is built in

Your titles are processed entirely on your device and are never sent anywhere. Click Clear All to wipe everything.

Privacy & Security

This tool runs 100% in your browser. Your files stay entirely on your own device. Nothing is uploaded, nothing is shared, and no server, advertiser, or third party has access to your files.

If a tool saves your work on your own device, you can remove it at any time using the Clear All button. Some tools rely on an external service to return their result; in those cases, only the minimum data required for the request is sent, and never your files or content. Any ads shown on this page run in an isolated frame and cannot read, touch, or transmit anything you upload, paste, type, or download here. Advertisers may see standard visit information like your IP address and which page you're on, as described in our Privacy Policy, but your data itself stays fully under your control.

Related Tools in Text Tools