Code and data file formats

67 formats in this category.

Code and data formats are almost always plain text. They are meant to be read by both people and programs, which is why most open instantly in any text editor.

.asmAssemblyAssembly Language Source File.batBATWindows Batch File.cCC Source File.csC#C Sharp Source File.cppC++C++ Source File.cfgCFGConfiguration File.cljClojureClojure Source File.cmakeCMakeCMake Script File.confCONFConfiguration File.cssCSSCascading Style Sheets.dDD Source File.dartDartDart Source File.editorconfigEditorConfigEditorConfig Coding-Style File.exElixirElixir Source File.elmElmElm Source File.envENVEnvironment Variables File.erlErlangErlang Source File.f90FortranFortran Source File.gitignoregitignoreGit Ignore Rules File.goGoGo Source File.gradleGradleGradle Build Script.groovyGroovyApache Groovy Source File.hsHaskellHaskell Source File.hclHCLHashiCorp Configuration Language File.htmlHTMLHyperText Markup Language.iniINIInitialization / Configuration File.javaJavaJava Source File.jsJSJavaScript.jsonJSONJavaScript Object Notation.jsxJSXJavaScript React Source File.jlJuliaJulia Source File.ktKotlinKotlin Source File.lessLessLeaner Style Sheets.lockLockfileDependency Lockfile / Lock Marker.luaLuaLua Source File.mdMDMarkdown.nimNimNim Source File.nixNixNix Expression File.npmrcnpmrcnpm Configuration File.mlOCamlOCaml Source File.pasPascalPascal / Delphi Source File.plPerlPerl Script.phpPHPPHP Source File.propertiesPropertiesJava Properties File.plistProperty ListApple Property List.ps1PS1PowerShell Script.pyPythonPython Source File.rRR Source File.regREGWindows Registry File.rbRubyRuby Source File.rsRustRust Source File.sassSassSyntactically Awesome Style Sheets.scalaScalaScala Source File.scssSCSSSassy CSS.shSHShell Script.solSoliditySolidity Smart Contract Source File.sqlSQLSQL Script.swiftSwiftSwift Source File.tfTerraformTerraform Configuration File.tomlTOMLTom's Obvious, Minimal Language.tsxTSXTypeScript React Source File.tsTypeScriptTypeScript Source File.vbVB.NETVisual Basic .NET Source File.vueVueVue Single-File Component.xmlXMLExtensible Markup Language.yamlYAMLYAML Ain't Markup Language.zigZigZig Source File

Plain text, read by people and machines

Code and data-interchange formats are almost always plain text, which is why they open instantly in any editor and show up cleanly in version control. Source files (JavaScript, HTML, CSS, Python and the like) are instructions for a program or a runtime. Structured-data files (JSON, XML, YAML, CSV) carry information in a shape both humans and programs can read. Config files (INI, TOML, and many dotfiles) tell software how to behave.

Because they are text, the extension is a convention rather than a hard requirement: a .json file is just text that happens to follow JSON syntax. Editors and linters use the extension to pick the right highlighting and validation.

Encoding and line endings

Two invisible details cause most cross-platform headaches with text files: character encoding and line endings. UTF-8 is the modern default and handles every language; older files may use other encodings and show garbled characters. Windows ends lines with a carriage return and line feed (CRLF) while Unix uses a line feed alone (LF), which is why a file can look single-lined when opened in the wrong editor.

Other categories