About the SQL Keyword Case Converter
Style guides disagree about keyword case, and a query pasted from an ORM or a colleague rarely matches yours. Changing the case with a plain text editor also changes table and column names, which is wrong on case-sensitive databases. This tool recognises a list of around 130 SQL keywords and function names and changes only those, skipping anything inside single, double or backtick quotes.
The layout is preserved exactly: no reformatting, no reindenting. That makes it a lightweight alternative to the full SQL Formatter when the query is already laid out the way you want and only the keyword case is off.
Identifiers that happen to be keywords, for example a column called name or date, will be changed too unless they are quoted. Quote such identifiers, or fix the few occurrences by hand.
How to use
- Paste the query.
- Choose upper or lower case.
- Copy the result.
Common questions
- Does it change table and column names?
- Not unless they happen to match a keyword such as date or count. Quote those identifiers to protect them.
- Which keywords are recognised?
- The common DML, DDL, join, aggregate, and type keywords across major dialects, around 130 words.
- Does it reformat the query?
- No. Whitespace and line breaks are preserved exactly.