500002021 in words is written as :

Million Two Thousand Twenty One