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

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

2 Answers 2

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 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 at 7:03
Thanks, this is also a very good answer! – ragnarius Jun 3 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.