# URL slug generator

> Make a clean URL slug from a title.

[Open tool](https://www.toolcabana.com/ms/slug-generator) · [Teks dan penulisan](https://www.toolcabana.com/ms/category/text-and-writing)

Tool ID: slug-generator. Requested language: ms. Description language: en. Complete guide translation: no; untranslated sections use English.

## Overview (en)

URL Slug Generator turns a title into a lowercase, URL-friendly slug, replacing spaces and punctuation with hyphens or underscores and removing accents. Non-Latin letters are kept by default, so titles in scripts like Japanese still produce a slug; turn the option off for ASCII-only output. You can also cap the slug length without leaving a trailing separator.

## Supported tasks (en)

Make a clean URL slug from a title.

## Steps (en)

1. Type or paste your source, or load an example.
2. Change the basic settings or open Advanced mode to fine-tune the result.
3. Review and copy or download your result. Pause Live results to run manually. Sources or individual settings above 20,000 characters require an explicit run.

## Settings

- Keep non-Latin characters (en; key: unicode; type: checkbox)
- Separator (en; key: separator; type: select): Hyphen [en], Underscore [en]
- Maximum length (0 = unlimited) (en; key: maxLength; type: number); minimum: 0; maximum: 2000

## Limitations (en)

Text operations generally accept up to 2,000,000 characters. Individual parsers, generators and formulas apply additional limits shown by their controls.

## Example input

```text
Hello world.
A second line.
Café, İstanbul, 日本語, and 👨‍👩‍👧‍👦.
```

## Privacy and connections (en)

This operation processes its source in your browser. Copy and download are explicit actions; source input is not saved in an account or history.

## Questions (en)

### How do I make an ASCII-only slug without non-Latin characters?

Turn off Keep non-Latin characters. Only a to z and 0 to 9 then remain, with accents removed first so Café becomes cafe. If nothing supported is left, as with an all-Japanese title, the tool shows an error instead of an empty slug.

### Can I limit the length of a URL slug?

Yes. Set Maximum length in Advanced mode to any value up to 2000 characters, or 0 for no limit. The slug is cut at that length and any separator left dangling at the end is removed.

### Can I use underscores instead of hyphens in a slug?

Yes. The Separator setting offers Hyphen, the default, or Underscore. Whichever you choose replaces every run of spaces and punctuation, and separators at the start or end of the slug are removed.

### Where is my input processed?

This operation processes its source in your browser. Copy and download are explicit actions; source input is not saved in an account or history.

### What are the input limits?

Text operations generally accept up to 2,000,000 characters. Individual parsers, generators and formulas apply additional limits shown by their controls.

## Related tools

- [Remove accents](https://www.toolcabana.com/ms/remove-accents)
- [Lorem ipsum generator](https://www.toolcabana.com/ms/lorem-ipsum)
- [Text difference checker](https://www.toolcabana.com/ms/text-diff)
- [Bold Unicode text](https://www.toolcabana.com/ms/bold-text)
