Elysia Tools
Navigation
Validation
Slug samples under an explicit ASCII policy
For these exercises only, allow lowercase ASCII letters and digits in nonempty groups separated by one hyphen. This is not a universal URL rule.
Samples
Entries inside this sample collection
Common URL Slug Patterns
A list of valid and invalid URL slug examples showing proper formatting
# URL Slug Samples
# Copy one of these lines to test the Slug Validator
# --- Valid Slugs (Recommended) ---
# Simple single-word slugs
hello
world
blog
home
about
contact
# Multi-word slugs with hyphens
my-blog-post
hello-world
getting-started
web-development-guide
best-practices-for-coding
# Product slugs
product-name-123
amazing-widget-v2
premium-service-plan
# Article slugs
how-to-learn-programming
top-10-javascript-tips
understanding-async-await
introduction-to-machine-learning
# Category slugs
web-development
mobile-apps
data-science
cloud-computing
# Slugs with numbers
version-2-0
chapter-1
page-42
2023-annual-report
# Date-based slugs
2023-12-25-daily-update
2024-january-newsletter
# Short slugs
api
docs
faq
help
# SEO-friendly slugs
best-coffee-shops-nyc
seo-tips-for-beginners
healthy-recipes-for-kids
# --- Slugs With Underscores (Validator-dependent) ---
my_first_post
user_profile_page
data_structures_101
# --- Nonconforming Examples (under lowercase ASCII hyphen-only policy) ---
# Contains uppercase (outside this lowercase policy)
MyBlogPost
HelloWorld
JavaScriptTutorial
# Contains spaces (invalid - should use hyphens)
my blog post
hello world
user profile
# Starts or ends with hyphen (invalid)
-my-post
my-post-
-test
# Starts or ends with underscore (not recommended)
_my_slug
my_slug_
# Consecutive hyphens (not recommended)
my--blog--post
test---example
# Other characters (outside this hyphen-only policy)
hello@world
test.slug
slug#tag
user&profile
# Mixed formats (policy-dependent; underscores excluded by this policy)
My Blog Post!
user@profile-page
test_slug_123Tools
Tools frequently paired with this sample
Related
Related sample collections
Related