General

Common File Extensions Reference

Comprehensive reference of common file extensions organized by category - programming, web, data, documents, media, and archives.

Overview

File extensions identify file types and help operating systems determine how to handle them. This reference covers the most common extensions developers encounter, organized by category.

Programming Languages

ExtensionLanguage/TechnologyDescription
.jsJavaScriptJavaScript source
.mjsJavaScriptES module
.cjsJavaScriptCommonJS module
.tsTypeScriptTypeScript source
.tsxTypeScript/ReactTypeScript with JSX
.jsxJavaScript/ReactJavaScript with JSX
.pyPythonPython source
.rbRubyRuby source
.rsRustRust source
.goGoGo source
.javaJavaJava source
.ktKotlinKotlin source
.swiftSwiftSwift source
.cCC source
.cpp / .ccC++C++ source
.hC/C++Header file
.csC#C# source
.phpPHPPHP source
.luaLuaLua source
.ex / .exsElixirElixir source / script
.erlErlangErlang source
.hsHaskellHaskell source
.scalaScalaScala source
.rRR source
.shShellBash/shell script
.zshZshZsh script
.ps1PowerShellPowerShell script
.sqlSQLSQL query
.wasmWebAssemblyWebAssembly binary
.watWebAssemblyWebAssembly text format

Web & Markup

ExtensionFormatDescription
.html / .htmHTMLWeb page
.cssCSSStylesheet
.scss / .sassSassCSS preprocessor
.lessLessCSS preprocessor
.mdxMDXMarkdown with JSX
.mdMarkdownMarkdown document
.svgSVGVector graphic
.vueVue.jsVue single-file component
.svelteSvelteSvelte component
.astroAstroAstro component
.ejsEJSEmbedded JavaScript template
.hbsHandlebarsHandlebars template
.pugPugPug template (formerly Jade)
.njkNunjucksNunjucks template
.woff / .woff2Web fontWeb Open Font Format
.ttfTrueTypeTrueType font
.otfOpenTypeOpenType font
.eotEOTEmbedded OpenType (legacy IE)

Data & Configuration

ExtensionFormatDescription
.jsonJSONJavaScript Object Notation
.jsoncJSON with commentsJSON allowing comments
.json5JSON5Extended JSON
.yaml / .ymlYAMLYAML configuration
.tomlTOMLTOML configuration
.xmlXMLExtensible Markup Language
.csvCSVComma-separated values
.tsvTSVTab-separated values
.envdotenvEnvironment variables
.iniINIINI configuration
.propertiesPropertiesJava properties
.plistProperty ListApple property list
.protoProtocol BuffersProtobuf schema
.graphql / .gqlGraphQLGraphQL schema/query
.prismaPrismaPrisma schema
.tfTerraformTerraform configuration
.hclHCLHashiCorp Config Language

Documents & Spreadsheets

ExtensionFormatDescription
.pdfPDFPortable Document Format
.doc / .docxWordMicrosoft Word
.xls / .xlsxExcelMicrosoft Excel
.ppt / .pptxPowerPointMicrosoft PowerPoint
.odtODTOpenDocument text
.odsODSOpenDocument spreadsheet
.rtfRTFRich Text Format
.txtTextPlain text
.texLaTeXLaTeX document
.epubEPUBE-book format

Archives & Packages

ExtensionFormatDescription
.zipZIPZIP archive
.tarTarTape archive
.gz / .gzipGzipGNU zip compression
.tar.gz / .tgzTarballCompressed tar archive
.bz2Bzip2Bzip2 compression
.xzXZXZ compression
.7z7-Zip7-Zip archive
.rarRARRAR archive
.zstZstandardZstandard compression
.debDebianDebian package
.rpmRPMRed Hat package
.dmgDMGmacOS disk image
.appimageAppImageLinux portable app
.snapSnapSnap package

DevOps & Infrastructure

ExtensionFormatDescription
.dockerfileDockerfileDocker build instructions
.dockerignoredockerignoreDocker ignore rules
.gitignoregitignoreGit ignore rules
.gitattributesgitattributesGit file attributes
.editorconfigEditorConfigEditor configuration
.eslintrcESLintESLint configuration
.prettierrcPrettierPrettier configuration
.nvmrcnvmNode.js version
.ruby-versionrbenvRuby version
.python-versionpyenvPython version
.tool-versionsasdfMulti-runtime versions
.pemPEMCertificate / key
.crt / .cerCertificateSSL/TLS certificate
.keyPrivate keySSL/TLS private key
.pubPublic keySSH public key
.logLogLog file
.lockLock fileDependency lock (various)
.mapSource mapJavaScript source map