"I can do it."
Translation:Jeg klarer det.
The first says you are capable of doing it. The latter says you are (also) willing to do it, offering up to do it.
In addition to what grydolva said, 'jeg klarer det' often refers to something you're doing at the moment, while 'jeg kan gjøre det' often refers to a future event.