These are some useful tools for viewing, analyzing and fixing file formats. They are web-based, but do all processing locally in your browser.
- Byte count - count the byte values in a file
- Character count - count the characters (UTF-8, UTF-16 or Latin-1) in a file