6586 in words is written as :

Six Thousand Five Hundred and Eighty Six