If your input only contains ASCII characters, you could use
tr like:tr A-Z a-z < input
or (less easy to remember and type IMO, but not limited to ASCII latin letters):
tr '[:upper:]' '[:lower:]' < input
if you have to use
sed:sed 's/.*/\L\1/g' < input
http://unix.stackexchange.com/questions/171603/convert-file-contents-to-lower-case