How to create a slug field in Airtable

In Airtable you can use a Single Line Text Field if you’d like to enter slugs yourself or a Formula field to have slugs generated automatically.

We recommend using the following formula in Airtable to ensure slugs have the correct format:

LOWER(REGEX_REPLACE(REGEX_REPLACE(REGEX_REPLACE(TRIM({Name}), "[^a-zA-Z0-9- ]", ""), " ", "-"), "-+", "-") & "-" & RIGHT(RECORD_ID(), 5))

In Notion:

replaceAll(prop("Article Title"), "[^a-zA-Z0-9- ]|,| ", "-")

Last updated