How To Change The Selected Text Case In Sublime Text, Two Key Methods

by Yaron Elharar ( @YaronElharar )

Updated · First version published

When you need to change capitalization in Sublime Text, use the built-in Convert Case commands. As of September 20, 2026, the current stable release is Sublime Text 4, Build 4200. Development Build 4212 was posted September 16, 2026. The changelog still documents case conversion under Edit → Convert Case.

What Is Sublime Text?

Sublime Text is a text editor that people use for writing code, taking notes, or even drafting documents. It’s fast, easy to use, and highly customizable. You can add extra features through plugins and change its look with themes. Sublime Text is widely used by developers, programmers, and IT professionals.

What are the Built-in Ways to Change Text Capitalization in Sublime Text

The keyboard sequences below are the Windows and Linux defaults. They are multi-step chords: press Ctrl+K, then press the second key. Official default bindings record lowercase as ["ctrl+k", "ctrl+l"] and uppercase as ["ctrl+k", "ctrl+u"]. On macOS, those defaults use Command (⌘) instead of Ctrl.

  • Lowercase (Windows/Linux): Ctrl+K, then Ctrl+L — the default lower_case command.
  • Uppercase (Windows/Linux): Ctrl+K, then Ctrl+U — the default upper_case command.
  • Title Case: Edit → Convert Case → Title Case.
  • Swap Case: Edit → Convert Case → Swap Case. The swap_case command remains part of Convert Case in Sublime Text 4.

Title Case, Upper Case, Lower Case, and Swap Case are not the full Convert Case menu. Since Build 4142 (November 10, 2022), Sublime also added commands for converting between common identifier cases under Edit → Convert Case — for example snake_case and camelCase. The changelog does not enumerate every identifier style, so check the Convert Case submenu in your build for the current list.

You can still add a custom keybinding in your user keymap. Sublime accepts both ctrl and control as modifier names. This JSON format remains valid:

{"keys":["control+shift+m"],"command":"swap_case"}

An optional Windows shortcut

Edit → Convert Case already changes the selection, including lowercase, uppercase, title case, swap case, and identifier cases such as snake_case and camelCase. AnyCase is only for when you want that same conversion from one Windows shortcut in other programs as well. It is not a Sublime command.

If you only need to convert a snippet once, use the free case converter. That page is paste-only. It does not change text in the open Sublime file.