使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
Google 编入索引的文件类型
Google 可以将大多数文本文件和某些已编码文档格式的内容编入索引。最常编入索引的文件类型包括:
- Adobe 便携式文档格式 (.pdf)
- Adobe PostScript (.ps)
- 以逗号分隔的值 (.csv)
- 电子出版物 (.epub)
- Google 地球(.kml、.kmz)
- GPS 交换格式 (.gpx)
- Hancom Hanword (.hwp)
- HTML(.htm、.html、其他文件扩展名)
- Microsoft Excel(.xls、.xlsx)
- Microsoft PowerPoint(.ppt、.pptx)
- Microsoft Word(.doc、.docx)
- OpenOffice 演示文稿 (.odp)
- OpenOffice 电子表格 (.ods)
- OpenOffice 文本文件 (.odt)
- 富文本格式 (.rtf)
- 可缩放矢量图形 (.svg)
- TeX/LaTeX (.tex)
-
文本文件(.txt、.text、其他文件扩展名),包括采用常用编程语言的源代码,例如:
- Basic 源代码 (.bas)
- C/C++ 源代码(.c、.cc、.cpp、.cxx、.h、.hpp)
- C# 源代码 (.cs)
- Java 源代码 (.java)
- Perl 源代码 (.pl)
- Python 源代码 (.py)
- 无线标记语言(.wml、.wap)
- XML (.xml)
Google 还可以将以下媒体格式的内容编入索引:
-
图片格式: BMP、GIF、JPEG、PNG、WebP、SVG 和 AVIF
-
视频格式: 3GP、3G2、ASF、AVI、DivX、M2V、M3U、M3U8、M4V、MKV、MOV、MP4、MPEG、OGV、QVT、RAM、RM、VOB、WebM、WMV 和 XAP
按文件类型搜索
您可以在 Google 搜索中使用 filetype:
运算符,将搜索结果限制为特定文件类型或文件扩展名。例如,filetype:rtf galway
会搜索以 .rtf
结尾且内容包含“galway”一词的 RTF 文件和网址。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-04。
[null,null,["最后更新时间 (UTC):2025-08-04。"],[[["\u003cp\u003eGoogle can index various file types, including text-based documents, presentations, spreadsheets, and source code files, for search results.\u003c/p\u003e\n"],["\u003cp\u003eGoogle supports indexing common media formats like images (BMP, GIF, JPEG, PNG, etc.) and videos (MP4, AVI, MOV, etc.).\u003c/p\u003e\n"],["\u003cp\u003eUsers can refine their Google searches by specifying a desired file type using the \u003ccode\u003efiletype:\u003c/code\u003e operator to narrow results.\u003c/p\u003e\n"]]],["Google indexes various text-based files and encoded document formats, including PDFs, HTML, Microsoft Office files, and OpenOffice formats. It also indexes source code files (like .c, .java, .py), XML, and more. Media formats such as common image types (JPEG, PNG) and video types (MP4, AVI) are indexable. Users can search for specific file types using the `filetype:` operator, to filter results to those formats.\n"],null,["# File Types Indexable by Google | Google Search Central\n\nFile types indexable by Google\n==============================\n\n\nGoogle can index the content of most text-based files and certain encoded document formats. The\nmost common file types we index include:\n\n- Adobe Portable Document Format (.pdf)\n- Adobe PostScript (.ps)\n- Comma-Separated Values (.csv)\n- Electronic Publication (.epub)\n- Google Earth (.kml, .kmz)\n- GPS eXchange Format (.gpx)\n- Hancom Hanword (.hwp)\n- HTML (.htm, .html, other file extensions)\n- Microsoft Excel (.xls, .xlsx)\n- Microsoft PowerPoint (.ppt, .pptx)\n- Microsoft Word (.doc, .docx)\n- OpenOffice presentation (.odp)\n- OpenOffice spreadsheet (.ods)\n- OpenOffice text (.odt)\n- Rich Text Format (.rtf)\n- Scalable Vector Graphics (.svg)\n- TeX/LaTeX (.tex)\n- Text (.txt, .text, other file extensions), including source code in common programming languages, such as:\n - Basic source code (.bas)\n - C/C++ source code (.c, .cc, .cpp, .cxx, .h, .hpp)\n - C# source code (.cs)\n - Java source code (.java)\n - Perl source code (.pl)\n - Python source code (.py)\n- Wireless Markup Language (.wml, .wap)\n- XML (.xml)\n\n\nGoogle can also index the following media formats:\n\n- Image formats: BMP, GIF, JPEG, PNG, WebP, SVG, and AVIF\n- Video formats: 3GP, 3G2, ASF, AVI, DivX, M2V, M3U, M3U8, M4V, MKV, MOV, MP4, MPEG, OGV, QVT, RAM, RM, VOB, WebM, WMV, and XAP\n\nSearch by file type\n-------------------\n\n\nYou can use the `filetype:` operator in Google Search to limit results to a\nspecific file type or file extension. For example,\n[filetype:rtf galway](https://www.google.com/search?q=filetype:rtf+galway)\nwill search for RTF files and URLs ending in `.rtf` whose content contains the term\n\"galway\"."]]