# Gerador de slug para URL

> Crie um slug limpo para URL a partir de um título.

[Open tool](https://www.toolcabana.com/pt-pt/slug-generator) · [Texto e escrita](https://www.toolcabana.com/pt-pt/category/text-and-writing)

Tool ID: slug-generator. Requested language: pt-PT. Description language: pt-PT. Complete guide translation: yes.

## 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 (pt-PT)

Crie um slug limpo para URL a partir de um título.

## Steps (pt-PT)

1. Escreva ou cole o seu texto, ou carregue um exemplo.
2. Altere as definições básicas ou abra o modo avançado para ajustar o resultado.
3. Verifique e copie ou descarregue o resultado. Coloque os resultados em direto em pausa para executar manualmente. Textos ou definições individuais com mais de 20,000 caracteres exigem uma execução explícita.

## Settings

- Manter carateres não latinos (pt-PT; key: unicode; type: checkbox)
- Separador (pt-PT; key: separator; type: select): Hífen [pt-PT], Sublinhado [pt-PT]
- Comprimento máximo (0 = sem limite) (pt-PT; key: maxLength; type: number); minimum: 0; maximum: 2000

## Limitations (pt-PT)

As operações de texto geralmente aceitam até 2,000,000 caracteres. Cada analisador, gerador ou fórmula aplica limites adicionais apresentados nos respetivos controlos.

## Example input

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

## Privacy and connections (pt-PT)

Esta operação processa o texto no seu navegador. Copiar e descarregar exigem uma ação explícita; o texto introduzido não é guardado numa conta nem no histórico.

## Questions (pt-PT)

### 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.

### Onde é processado o meu texto?

Esta operação processa o texto no seu navegador. Copiar e descarregar exigem uma ação explícita; o texto introduzido não é guardado numa conta nem no histórico.

### Quais são os limites de entrada?

As operações de texto geralmente aceitam até 2,000,000 caracteres. Cada analisador, gerador ou fórmula aplica limites adicionais apresentados nos respetivos controlos.

## Related tools

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