{"id":19909020,"url":"https://github.com/dyne/file-extension-list","last_synced_at":"2025-10-07T01:32:55.622Z","repository":{"id":15024062,"uuid":"77449851","full_name":"dyne/file-extension-list","owner":"dyne","description":"Organised collection of common file extensions","archived":false,"fork":false,"pushed_at":"2024-05-23T03:23:11.000Z","size":161,"stargazers_count":153,"open_issues_count":0,"forks_count":44,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-04-09T23:15:53.064Z","etag":null,"topics":["extension","filetype","json","organisation","recognition","typology"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dyne.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["dyne"],"ko-fi":"dyneorg"}},"created_at":"2016-12-27T11:16:46.000Z","updated_at":"2025-03-16T01:15:31.000Z","dependencies_parsed_at":"2023-01-11T20:22:46.973Z","dependency_job_id":"4db85c03-d445-47e5-b647-165290408949","html_url":"https://github.com/dyne/file-extension-list","commit_stats":{"total_commits":84,"total_committers":8,"mean_commits":10.5,"dds":"0.40476190476190477","last_synced_commit":"2fd0da91a901af4f440fc211a98a38c6c2b154db"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyne%2Ffile-extension-list","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyne%2Ffile-extension-list/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyne%2Ffile-extension-list/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyne%2Ffile-extension-list/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dyne","download_url":"https://codeload.github.com/dyne/file-extension-list/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248125592,"owners_count":21051770,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["extension","filetype","json","organisation","recognition","typology"],"created_at":"2024-11-12T21:14:11.221Z","updated_at":"2025-10-07T01:32:55.540Z","avatar_url":"https://github.com/dyne.png","language":"Shell","funding_links":["https://github.com/sponsors/dyne","dyneorg"],"categories":[],"sub_categories":[],"readme":"\u003c!--\nSPDX-FileCopyrightText: 2020-2021 Dyne.org foundation \u003cinfo@dyne.org\u003e\nSPDX-License-Identifier: CC0-1.0\n--\u003e\n\n# Organised collection of common file extensions\n\n[![License: Unlicense](\n    https://img.shields.io/badge/License-Unlicense-blue.svg)](\n    https://unlicense.org/)\n[![REUSE status](\n    https://api.reuse.software/badge/github.com/dyne/file-extension-list)](\n    https://api.reuse.software/info/github.com/dyne/file-extension-list)\n\n## TL;DR\n\n- [List organized by extension, JSON format](pub/extensions.json)\n- [List organized by category, JSON format](pub/categories.json)\n\n## Introduction\n\nThis project maintains reusable collections of common file extensions\ncategorised per typology. It can be used by any program to quickly\ndistinguish between file types.\n\nSuch an approach works much faster than recognition by mime/type or using\n[libmagic](\nhttps://www.commandlinux.com/man-page/man3/libmagic.3.html), but is of\ncourse less precise.\n\nThe raw data is under [data](data), while generated formats and tools\ncan be found on the [projects pages](\nhttps://dyne.github.io/file-extension-list).\n\n## Organisation\n\n### Categories\n\nEach category is a file named after a generic typology stored in `data/categories/`:\n\n| file.csv | description |\n| --- | ---------- |\n| [archive](data/categories/archive.csv)  | archives and disc images |\n| [audio](data/categories/audio.csv)  | playable audio |\n| [book](data/categories/book.csv)  | electronic books |\n| [code](data/categories/code.csv)  | code in machine languages |\n| [exec](data/categories/exec.csv)  | executable binaries |\n| [font](data/categories/font.csv)  | typography fonts |\n| [image](data/categories/image.csv)  | static images |\n| [sheet](data/categories/sheet.csv)  | spreadsheets |\n| [slide](data/categories/slide.csv)  | presentations and slides |\n| [text](data/categories/text.csv)  | text in human languages |\n| [video](data/categories/video.csv)  | moving images |\n| [web](data/categories/web.csv)  | web developers bread and butter |\n\nInside each category file there is a file extension string\nin the first column.\nThis collection is not complete...\nand knowing how standards go: it will never be.\n[We welcome your contribution](\nhttps://github.com/dyne/file-extension-list/pulls).\n\nSome extensions (for instance `html`, see #10 and #11)\nmay belong to more than one category:\n`code` or `web`.\nIn these cases, any extra occurrence of the extension\nwill be marked `%` in the second column,\nto mark it as duplicate of another categorisation\nthat took priority.\n\nTo establish the category of a single file\none can simply ignore all duplicate extensions\n(those containing `%` in the second column).\nDuplicates may be useful to establish the category of a directory\ncontaining multiple files [by means of fuzzy logic](\nhttps://github.com/dyne/file-extension-list/pull/10#issuecomment-529363535).\n\n### Extensions\n\nThe file [`data/extensions.csv`](data/extensions.csv)\ncontains meta-data per file-extension.\nThe columns explained:\n\n| column number: | 1. | 2. | 3. |\n| --- | --- | --- | --- |\n| title: | file-extension | open/closed/uncategorized | text/binary/uncategorized |\n| possible values: | `*` | `o/c/-` | `t/b/-` |\n\n## Quick start\n\nThe current data is available for download in JSON format:\n\n- [List organized by extension, JSON format](pub/extensions.json)\n- [List organized by category, JSON format](pub/categories.json)\n\nTo change extensions and categories one can edit them inside the\n`data/` directory and then use `make` to render new JSON files:\n\n```\nUsage:\n  make \u003ctarget\u003e\n\nGeneral\n  help             Display this help.\n  list             list all categories and extensions\n  dups             list all duplicate extensions present in more categories\n  json-categories  build the json dictionary for { category: [ extensions.. ], .. }\n  json-extensions  build the json dictionary for { extension: [ category ], .. }\n  release          update the local render in pub/ for release\n```\n\nLaunching `make list` will print on your terminal all currently known\nextensions by category, for example:\n\n```\narchive: 7z a apk ar bz2 cab cpio deb dmg egg gz iso jar lha mar pea rar rpm s7z shar tar tbz2 tgz tlz war whl xpi zip zipx xz pak\naudio: aac aiff ape au flac gsm it m3u m4a mid mod mp3 mpa pls ra s3m sid wav wma xm\nbook: mobi epub azw1 azw3 azw4 azw6 azw cbr cbz\ncode: 1.ada 2.ada ada adb ads asm bas bash bat c c++ cbl cc class clj cob cpp cs csh cxx d diff e el f f77 f90 fish for fth ftn go groovy h hh hpp hs html htm hxx java js jsx jsp ksh kt lhs lisp lua m m4 nim patch php pl po pp py r rb rs s scala sh swg swift v vb vcxproj xcodeproj xml zsh\nexec: exe msi bin command sh bat crx bash csh fish ksh zsh\nfont: eot otf ttf woff woff2\nimage: 3dm 3ds max bmp dds gif jpg jpeg png psd xcf tga thm tif tiff yuv ai eps ps svg dwg dxf gpx kml kmz webp\nsheet: ods xls xlsx csv ics vcf\nslide: ppt odp\ntext: doc docx ebook log md msg odt org pages pdf rtf rst tex txt wpd wps\nvideo: 3g2 3gp aaf asf avchd avi drc flv m2v m4p m4v mkv mng mov mp2 mp4 mpe mpeg mpg mpv mxf nsv ogg ogv ogm qt rm rmvb roq srt svi vob webm wmv yuv\nweb: html htm css js jsx less scss wasm php\n```\n\n## Code\n\nYou are meant to write your own code to parse file-extension-list.\n\nThis repository contains some example code in [./render](render).\n\nTo contribute, please file a pull request on\n\u003chttps://github.com/dyne/file-extension-list/pulls\u003e\n\n## Usage\n\nFile-extension-list is used by the software application\n[harvest](https://github.com/dyne/harvest)\nfor fast categorization of large amounts of directories\ncontaining multiple file types.\n\nYou are welcome to let us know if you are using it too.\n\n## License\n\nFile-extension-list is maintained by [Jaromil](/jaromil), [Puria](/puria) and [Hoijui](/hoijui).\n\nThis is free and unencumbered software released into the public domain.\n\nAnyone is free to copy, modify, publish, use, compile, sell, or\ndistribute this software, either in source code form or as a compiled\nbinary, for any purpose, commercial or non-commercial, and by any\nmeans.\n\nIn jurisdictions that recognize copyright laws, the author or authors\nof this software dedicate any and all copyright interest in the\nsoftware to the public domain. We make this dedication for the benefit\nof the public at large and to the detriment of our heirs and\nsuccessors. We intend this dedication to be an overt act of\nrelinquishment in perpetuity of all present and future rights to this\nsoftware under copyright law.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR\nOTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\nARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.\n\nFor more information, please refer to \u003chttps://unlicense.org\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdyne%2Ffile-extension-list","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdyne%2Ffile-extension-list","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdyne%2Ffile-extension-list/lists"}