Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

This is the thing bugging me. I'd like to see some of my files in binary or plaintext format, but I can't figure out how to do it for all files. I can open some image files in plaintext using Textedit, but that's all I can figure out. Anyone know anything?

share|improve this question

6 Answers 6

I'd recommend TextWrangler as a good general purpose plain-text editor. If you have this in the Dock, you can drag any file on to it and the file will be opened as plain text.

share|improve this answer

I use HexEdit for this sort of thing. It can open any file and give you its hex and plaintext representation.

share|improve this answer

You can use Emacs hexl-mode.

In the terminal, type 'emacs' and the name of the file you want to open. When emacs opens up the file, type option-x hexl-mode.

share|improve this answer

The editor of my choice for these kinds of things is Smultron.

share|improve this answer

You can always drop into a Terminal shell session, and use cat or hexdump to view any file as a text or hexadecimal file.

TextEdit will also display plain text files (as will about any other text editor, as noted by others).

share|improve this answer

Use "od -h filename | less" in your Terminal.app.

share|improve this answer

Your Answer

 
discard

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.