Case Converter Widget

Add a text case converter to your writing or coding pages. Readers paste text and switch it to Title Case with proper small-word rules, Sentence case, upper or lower case, or the naming styles programmers use.

SEO & Content Converter Runs in your browser Free · no ads

Customize your widget

Theme
Auto follows the visitor's light/dark setting.
Style
Attribution on your page
The widget is free; a visible credit is how you can say thanks. It is one plain line, shown in the code below, linking to the tool with rel="nofollow". Switch it off here or delete the line - the widget works the same either way.
More options
Starting values
Leave blank to use the widget's defaults. Visitors can still change every value.

Live preview

Exactly what your visitors will see

Under the widget on your page: Case Converter by A2Z Tools

Embed code

<div data-a2z-widget="case-converter" data-height="450"></div>
<p class="a2z-attribution" style="margin:6px 0 0;font:12px/1.4 system-ui,sans-serif;opacity:.8">Case Converter by <a href="https://a2z.tools/text-case-converter" target="_blank" rel="nofollow noopener">A2Z Tools</a></p>
<script async src="https://a2z.tools/embed.js"></script>

Recommended. A small script (what it does) sizes the widget to fit its content, loads it lazily and keeps it isolated in its own frame. Works in WordPress (Custom HTML block), Squarespace, Webflow, Shopify, Blogger, React / Next.js and plain HTML - anywhere a <script> tag is allowed.

Works with

Advertisement

How it works

Sentence case follows the A2Z Text Case Converter: everything is lower-cased, then the first letter of the text and of each sentence (after . ! or ?, stepping over quotes and brackets) is capitalised, along with the pronoun I. Title Case capitalises every word except short articles, conjunctions and prepositions, which stay lower-case unless they are the first or last word or follow a colon; words that already have capitals inside, like iPhone or NASA, are left alone unless the whole text is in capitals. The programming cases split on spaces, punctuation and existing camel-case boundaries (XMLHttpRequest gives xml, http, request) and work line by line, so a list of names converts in one go.

Method

  • Title Case small words: a an the and but or nor for so yet as at by in of off on per to up via vs
  • Sentence case: capitalise after . ! ? + space and at line starts; standalone i -> I
  • Word split for code cases: non-letters/digits, lower->Upper and ACRONYMWord boundaries
  • camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE applied per line

Limitations

  • Title Case follows one house style; AP, Chicago, APA and MLA disagree on words like "with", "from" and "between", so edit to your guide.
  • Sentence case lower-cases everything first and knows no proper nouns, so London, Monday or NASA inside a sentence come out as london, monday and nasa; fix names by hand.
  • Turkish dotted and dotless i, and other locale-specific casing, use the browser's default Unicode rules rather than the language's own.

Where publishers use it

  • Editorial style guides with headline capitalisation rules
  • Coding tutorials on naming conventions across languages
  • Fixing text accidentally typed with Caps Lock on
  • Preparing product names or CSV headers for a database

Questions

Which title case style does it follow?

A common editorial style close to AP and Chicago: short function words stay lower-case unless first, last or after a colon. Style guides differ on words like "with" and "from", which are capitalised here.

Will it break brand names like iPhone?

No. Words with capitals inside are kept as written in Title Case.

How are accents and other languages handled?

Upper- and lower-casing use the browser's Unicode rules (ß becomes SS). Code-style cases keep accented letters.

Is my text saved?

No. Conversion happens in the browser only.

Cite or recommend this tool

If you reference this tool in an article, course or documentation, these formats are ready to copy. They are optional - nothing is added to your site unless you paste it.

A2Z Tools Case Converter
https://a2z.tools/text-case-converter
  • URL Slug Generator

    SEO & Content Generator

    Turn a title into a clean URL slug: accents transliterated, optional stop-word removal and length cap.

    Get code
  • Word Counter

    SEO & Content Tool

    Words, characters, sentences, paragraphs, reading time and social-media character limits.

    Get code
  • Text Compare (Diff)

    SEO & Content Tool

    Compare two versions of a text line by line or word by word, with additions and removals marked.

    Get code
  • SERP Snippet Preview

    SEO & Content Tool

    Preview a title, URL and meta description as a Google-style result, with pixel-width estimates.

    Get code
  • Social Card Preview

    SEO & Content Tool

    Preview Facebook, LinkedIn and X link cards and generate the Open Graph meta tags.

    Get code
  • Keyword Density Checker

    SEO & Content Tool

    Top one-, two- and three-word phrases in a text with counts and density, plus a focus keyword.

    Get code

Preview

Advertisement