SEO Text Formatting

Title case, sentence case, URL slugs, meta tags, HTML stripping, and more.

Search engine optimization requires text in specific formats — page titles need title case, URLs need slug format, meta tags need character limits, and content needs to be free of HTML artifacts. These rules handle all of it.

Title Case

Capitalizes the first letter of each word. Smart handling of articles and prepositions.

Before
hello world example
THE QUICK BROWN FOX
After
Hello World Example
The Quick Brown Fox

Best for: page titles, H1 headings, product names.

Sentence Case

Capitalizes only the first letter of the text.

Before
HELLO WORLD EXAMPLE
mixed CASE Text
After
Hello world example
Mixed case text

Best for: descriptions, body text, meta descriptions.

UPPERCASE

Converts entire text to uppercase letters.

Before
Hello World
mixed case
After
HELLO WORLD
MIXED CASE

lowercase

Converts entire text to lowercase letters.

Before
Hello World
MIXED CASE
After
hello world
mixed case

URL Slug

Converts text to URL-friendly format: lowercase, spaces become hyphens, special characters removed.

Before
Hello World!
Product Name (2024)
What's New?
After
hello-world
product-name-2024
whats-new

Best for: URL paths, permalinks, programmatic page generation.

Meta Title (60 chars)

Truncates text to 60 characters at the nearest word boundary and adds an ellipsis if truncated. This matches the recommended length for search engine title tags.

Before
This Is A Very Long Title That Exceeds The Sixty Character Limit
After
This Is A Very Long Title That Exceeds The...

Meta Description (160 chars)

Truncates text to 160 characters at the nearest word boundary. This matches the typical length shown in search engine result snippets.

Before
A very long description text that goes well beyond the one hundred sixty characters recommended for meta descriptions in search results...
After
A very long description text that goes well beyond the one hundred sixty characters recommended for meta...

Strip HTML

Removes all HTML tags, keeping only the text content. Also decodes HTML entities.

Before
<p>Hello <b>World</b></p>
<div class="test">Content</div>
After
Hello World
Content

Remove Special Characters

Keeps only letters, numbers, and spaces. Everything else is removed.

Before
Hello! How are you?
Price: $99.99
After
Hello How are you
Price 9999

JSON Safe

Removes emojis, special Unicode, and control characters for safe API and JSON output.

Before
Hello! Great job! 🎉
Café & résumé
After
Hello Great job
Caf rsum

When to Use This

  • Programmatic SEO page generation
  • Product feed optimization
  • Content management and cleanup
  • Generating URL slugs from page titles