I believe myetherwallet is one of the safest online wallet out there but i know some people getting hacked even though they are very cautious on their private keys, i suggest using json file instead of private keys to be honest since hacker can't have a copy of it unless he/she has an access to that.