docx・xlsx・pptxを見分ける
この記事のポイント
- ファイルを選ぶ
- 種類を確認する
- 拡張子をつける
ファイルの種類を判定する は、docx・xlsx・pptxがZIP形式であることを利用して、中を見て判定します。
手順
- 拡張子のないファイルを選ぶ
- 「Word」「Excel」「PowerPoint」のどれか確認する
- 対応する拡張子をつけて開く
古い形式(doc・xls・ppt)は、「古いOffice文書」と表示されます。
ファイルの種類を判定する(拡張子と中身の確認)を使う(無料)
あわせて使えるツール
- ファイルのハッシュ値を調べる(SHA-256):ファイルのハッシュ値を調べて、照合します。
- ZIPを開く(解凍):ZIPの中身を見て、ほしいファイルだけ取り出します。
- 文字コードを変換する(文字化けを直す):Shift_JIS・UTF-8・EUC-JPなどの文字コードを変換し、文字化けを直します。
同じツールの、ほかの解説
Telling docx, xlsx and pptx Apart
Key points
- Choose the file
- Check the type
- Add the extension
Check a File's Real Type looks inside, using the fact that docx, xlsx and pptx are ZIP files.
Steps
- Choose the file with no extension
- Check whether it is Word, Excel or PowerPoint
- Add the matching extension and open it
Old formats (doc, xls, ppt) are shown as "Old Office document".
Use "Check a File's Real Type (Extension vs Contents)" (free)
Tools that go well with this
- Check a File's Hash (SHA-256): Calculate a file's hash and compare it.
- Open a ZIP File (Unzip): See what is inside a ZIP and extract the files you need.
- Convert Text Encoding (Fix Garbled Text): Convert text files between Shift_JIS, UTF-8, EUC-JP and more to fix garbled text.