LOWER() in MySQL — How It Works
What the MySQL LOWER() function does, with an example.
Published October 18, 2026
LOWER() converts a string to lowercase; LCASE is a synonym. It is commonly used to normalise emails before storing or comparing.
How it works
Normalise on write so lookups can use an index.
Try it in MySQL
SELECT LOWER('Hello')
hello
SELECT LOWER(email) FROM users LIMIT 1
ada@example.com
SELECT LOWER(NULL)
NULL
Practical examples
Example 1
SELECT LOWER('Hello');
-- helloExample 2
SELECT LOWER(email) FROM users LIMIT 1;
-- ada@example.comExample 3
SELECT LOWER(NULL);
-- NULLUse it in a real query
SELECT id, LOWER('Hello') AS result
FROM your_table
LIMIT 10;Common mistakes
- Applying LOWER in every WHERE instead of storing lowercase.
- Using it on binary columns.
- Ignoring collation differences.
Key takeaways
- LOWER() in one line: LOWER() converts a string to lowercase; LCASE is a synonym.
- Try queries in a test database first.
- Check NULL handling and data types.
FAQ
Should I store emails lowercase?
Yes, normalise on insert and use a unique index.
Does LOWER() work in other databases?
Most have an equivalent, but names and syntax vary between MySQL, PostgreSQL, SQL Server and SQLite.