.ASP

ASP File

Active Server Pages (Classic ASP script page)
Ask a question
QUICK ANSWER

An .asp file is a Classic Active Server Pages script that runs on a Microsoft IIS web server. The server executes it and sends your browser plain HTML - you never receive the script itself. If a website downloaded an .asp file when you expected a PDF, invoice, or image, rename the file to the correct extension (.pdf, .jpg, .xlsx) and open it; that fixes it in most cases.

Developer: Microsoft Category: Web Files MIME: text/html
OPENS ON Windows macOS Linux

On this page

19k+ extensions indexed
Last reviewed Aug 28, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the ASP file format?

Files with the .asp extension store Microsoft Active Server Pages web page source code. An .asp file is plain text and can be opened with any text editor. ASP files can contain:

  • HTML markup that forms the web page structure,
  • VBScript or JScript code placed inside <% ... %> delimiters,
  • Page-level directives such as <%@ Language="VBScript" %>, plus attribute definitions and instructions.

.asp files are processed server-side by IIS upon a client request. The ASP engine executes the embedded script, then sends the resulting HTML to the browser. In contrast to static HTML pages, which the browser downloads and renders directly, Classic ASP pages must be processed before delivery. The URL may show the .asp extension, but the response body delivered to the browser is always plain HTML. If a request results in the raw .asp source code being downloaded rather than rendered, it is almost always caused by a server misconfiguration.

The first ASP components were developed in 1996, and ASP 2.0 followed a year later. In 2000, Microsoft released ASP 3.0, the final classic version. ASP was the first dynamic web-page technology developed by Microsoft, conceived as an add-on to IIS for Windows NT. The technology is now considered legacy and has been superseded by ASP.NET, introduced in 2002, which uses the .aspx extension. Related application-level configuration is stored in .asa files. Classic ASP pages are no longer actively developed, though a large number of legacy sites and intranet applications continue to run them on modern Windows Server editions, where IIS still ships with Classic ASP available as an optional feature.

Security & safety

RISK: LOW

The .asp extension itself says nothing about safety - when it appears in a URL it is just a normal web page; treat the site as you would any website (watch for phishing on login pages). A downloaded .asp file is typically harmless HTML or a misnamed document, and opening it in a text editor is always safe. Caution only applies if a download you didn't expect arrives as .asp from an untrusted source - inspect it as text before renaming and opening, and never run anything it tries to launch.

Format details

in a nutshell
FULL NAMEActive Server Pages (Classic ASP script page)
DEVELOPERMicrosoftsince 1996 (Active Server Pages 1.0, with IIS 3.0)
CATEGORYWeb Files
MIME TYPEtext/html
TYPEServer-side script page (HTML markup + VBScript/JScript run by IIS); plain text source. Not a downloadable document.

Programs that open ASP files

Windows4 apps
Visual Studio Freemium For developers maintaining a Classic ASP site: open the project to edit and debug the .asp source.
Notepad Open-source Open to inspect the raw source as text - every .asp file is plain text.
Visual Studio Code Free Open the .asp as text to read or edit its HTML + VBScript/JScript. Free, cross-platform.
Web browser (Chrome, Edge, Firefox) Free Only useful if the .asp is actually a saved HTML page - drag it into the browser to view that HTML. It will NOT run server-side code or fetch live data.
macOS3 apps
Visual Studio Code Free Open the .asp source as text to read or edit it.
TextEdit / any text editor Built-in Open the file as plain text (use Format > Make Plain Text). Fine for a quick look at the source.
Web browser (Safari, Chrome) Built-in Only if the file is a saved HTML page - opens that static HTML, not the live ASP application.
Linux2 apps
Visual Studio Code Free Open the .asp source as text for reading or editing.
gedit / any text editor Open-source Open directly - the file is plain text.

Technical details

deep spec
File naturePlain-text, server-side script - no binary signature or magic bytes
MIME typetext/html
Script delimiters<% ... %> for inline code; <%@ ... %> for page-level directives (e.g. <%@ Language="VBScript" %>)
Default scripting languageVBScript; switchable per file to JScript via <%@ Language="JScript" %>
Additional scripting enginesAny language with an installed ActiveX Script Engine (e.g. PerlScript via ActivePerl)
Web serverMicrosoft IIS (Internet Information Services); enabled as an optional Windows Server feature under Application Development
Built-in objectsRequest, Response, Server, Session, Application, ObjectContext
Database accessADO (ActiveX Data Objects) via COM - typically ADODB.Connection and ADODB.Recordset
Application config fileglobal.asa in the application root - handles Application_OnStart, Application_OnEnd, Session_OnStart and Session_OnEnd events
File includesServer-Side Includes: <!--#include file="path"--> or <!--#include virtual="/path"-->
Session managementBuilt-in Session object; default timeout 20 minutes; session ID transmitted via cookie
Error handlingOn Error Resume Next with the Err object; custom error pages configurable per-site in IIS Manager
Processing modelScript executes on each request; only the generated HTML response is returned to the client browser
Current statusLegacy - no new versions since ASP 3.0 (2000); IIS still ships Classic ASP as an opt-in component on Windows Server
Released1996 (Active Server Pages 1.0, with IIS 3.0)
Specificationlearn.microsoft.com

ASP conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with ASP files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about ASP files.

Frequently asked questions

Why did a website download an .asp file instead of a PDF?
The server generated your document through a Classic ASP page but sent the wrong file type/name. The download is usually the real PDF - rename it from .asp to .pdf and open it. If that fails, use the site's proper download link or right-click and 'Save link as'.
How do I open an .asp file?
It depends what it is. If it's a saved web page, open it in a browser (you'll see static HTML). If a download was misnamed, rename it to the real type (.pdf/.jpg/.xlsx). If you're a developer editing the source, open it in VS Code, Notepad++, or Visual Studio.
What does .asp mean at the end of a web address?
It means the page is built with Classic Active Server Pages and runs on a Microsoft IIS server. It's part of the URL, not a file you download - the server runs the page and sends your browser plain HTML.
What is the difference between ASP and ASPX?
ASP is the older 'Classic' technology (1996, VBScript/JScript). ASPX is ASP.NET (2002), its more powerful successor using C#/VB.NET. Both run on IIS and send HTML to the browser; new sites use ASPX (or newer) rather than ASP.
Can I convert an .asp file to PDF?
Not with a converter. If an .asp arrived where a PDF should have, it almost certainly IS the PDF with the wrong extension - rename it to .pdf. A genuine .asp is server code and has nothing to convert.
Why won't my .asp file open on my phone or Mac?
Because it isn't a regular document - there's no app that 'runs' an .asp outside a web server. Open it as text to see what it is, or rename it to the file type you actually expected (e.g. .pdf).

References

1Microsoft Learn - Active Server Pages (Classic ASP) documentationlearn.microsoft.com
2Microsoft Learn - Classic ASP not installed by default on IISlearn.microsoft.com

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.PARTPartial Download File
4.DATProgram Data File (generic)
5.EXEWindows Executable (Portable Executable)
6.BINCD/DVD Disc Image (BIN/CUE)
7.NOMEDIAAndroid No-Media Marker File
8.MDMarkdown Document
9.TMPTemporary File
10.RPMSGRestricted Permission Message

Related extensions

.CRDOWNLOADChrome Partial Download File
.JNLPJava Network Launch Protocol file
.WEBARCHIVESafari Web Archive
.PARTPartial Download File
.DOWNLOADPartial / Incomplete Download File
.ASPXActive Server Page Extended (ASP.NET Web Form)

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z