SQL Keyword Case Converter

Convert SQL keywords to UPPERCASE or lowercase while leaving names and values untouched.

Loading tool…

Standardize your SQL keyword case

The SQL Keyword Case Converter converts SQL keywords like SELECT, FROM, and WHERE to either uppercase or lowercase, while leaving your table names, column names, and string values exactly as they are. Paste your query, choose a case, and copy the consistent result — all in your browser.

Why keyword case matters

SQL is case-insensitive for keywords, so select and SELECT run the same. But consistent casing makes queries far easier to read and review. The most common convention is uppercase keywords with lowercase identifiers, which visually separates the SQL structure from your data. Whatever your team's style, applying it consistently makes code cleaner.

How to use it

  1. Choose UPPERCASE or lowercase keywords.
  2. Paste your SQL query.
  3. Copy the converted query.

What gets converted

ChangedUntouched
Keywords (SELECT, JOIN, WHERE…)Table and column names
Operators (AND, OR, IN, LIKE…)String literals and values
Clauses (GROUP BY, ORDER BY…)Aliases you defined

Only keywords change

The converter matches a comprehensive list of SQL keywords using word boundaries, so it changes only the language keywords — not your identifiers. A column literally named order as part of ORDER BY context is rare; for normal queries, your names and data stay exactly as written while the structure becomes consistent.

Pairs well with a formatter

Use this alongside a SQL formatter: format to fix indentation and line breaks, then standardize keyword case here. Together they turn a messy, inconsistent query into clean, review-ready SQL in seconds.

Private and free

Your SQL is processed entirely in your browser — nothing is uploaded or stored. The tool is completely free with no limits.

Frequently asked questions

Does changing case affect how SQL runs?

No. SQL keywords are case-insensitive, so casing is purely for readability — the query behaves identically.

Will it change my table and column names?

No. It only converts recognized SQL keywords; your identifiers, aliases, and string values are left untouched.

What's the recommended convention?

Uppercase keywords with lowercase identifiers is the most common, as it visually separates SQL structure from data.

Is my SQL private?

Yes. Everything runs in your browser and nothing is uploaded or stored.