What are common file extensions for web programming languages?

Paul Tarjan picture Paul Tarjan · Oct 23, 2009 · Viewed 29.4k times · Source

What file extensions are used most commonly by different languages? Please don't put source file names (like .java) but rather extensions that would be present in a URL for rendered pages.

Here is my (alphabetized) list so far

  • ASP Classic
    • asp
  • ASP.NET
    • aspx
    • axd
    • asx
    • asmx
    • ashx
  • CSS
    • css
  • Coldfusion
    • cfm
  • Erlang
    • yaws
  • Flash
    • swf
  • HTML
    • html
    • htm
    • xhtml
    • jhtml
  • Java
    • jsp
    • jspx
    • wss
    • do
    • action
  • JavaScript
    • js
  • Perl
    • pl
  • PHP
    • php
    • php4
    • php3
    • phtml
  • Python
    • py
  • Ruby
    • rb
    • rhtml
  • SSI
    • shtml
  • XML
    • xml
    • rss
    • svg
  • Other (C, perl etc.)
    • cgi
    • dll

Any more? I'll keep updating this based on comments. Largest correct additions (or deletions) is the accepted answer.

Aside: This is for comparing language use online: http://blog.paulisageek.com/2009/10/file-extensions-on-internet.html

Answer

ndim picture ndim · Oct 23, 2009

Keep in mind that good URL design will completely hide any underlying file types.