Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is the a tool (mac or online) that can help me to find out the character set of a text file, and then convert it to utf-8 ?

share|improve this question
up vote 7 down vote accepted

If you are using Windows try downloading Notepad++. It should recognize the encoding and offers several conversions including UTF-8.

share|improve this answer
Nice tool, thank you!! (my score is 11 so I can't boost your). – ragnarius Mar 24 '10 at 20:31
if you need to convert your file: – Adrien Be Jun 23 '14 at 14:44
  • for linux, use file -i filename
  • for mac, use file -I filename

For instance,

$ file -i readme.txt 
readme.txt: text/plain; charset=iso-8859-1

BTW, for converting, use iconv, for instance,

iconv -f ISO-8859-1 -t UTF-8 filename
share|improve this answer
Thanks, but it does not convert – ragnarius Jun 1 '15 at 21:15
In speaking of converting, use the command iconv. For instance, iconv -f ISO-8859-1 -t UTF-8 filename – sparkandshine Jun 2 '15 at 7:03
Thanks, this is also a very good answer! – ragnarius Jun 3 '15 at 20:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.