.ASPX

ASPX File

Active Server Page Extended (ASP.NET Web Form)
Ask a question
QUICK ANSWER

An ASPX file is an ASP.NET web page (Active Server Page Extended) that lives and runs on a Microsoft IIS web server. You never receive the file itself - the server runs it and sends your browser plain HTML. If a website downloaded an .aspx file when you expected a PDF or invoice, the file is almost certainly the real document with the wrong extension: rename it to .pdf (or .jpg, .xlsx) and open it normally.

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

On this page

19k+ extensions indexed
Last reviewed Aug 27, 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 ASPX file format?

.aspx is an extended version of the Active Server Page format, developed by Microsoft as part of the ASP.NET Web Forms framework - a server-side technology built on the .NET platform. The main purpose of this framework is to develop dynamic websites, web-based services and applications.

The working of an .aspx file is similar to that of .asp, but in .aspx static HTML markup is combined with ASP.NET server controls and a code-behind file written in C# or VB.NET. A page named Default.aspx, for example, typically pairs with Default.aspx.cs or Default.aspx.vb. At runtime the server processes the .aspx source and delivers plain HTML to the browser - any browser can be used to view the output.

Related ASP.NET file types include .ascx (user controls) and .ashx (HTTP handlers). Modern ASP.NET development has largely moved to .cshtml Razor pages, but .aspx Web Forms remain common in legacy enterprise applications.

Security & safety

RISK: LOW

The .aspx 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 banking/login pages). A downloaded .aspx 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 .aspx 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 Page Extended (ASP.NET Web Form)
DEVELOPERMicrosoftsince 2002 (ASP.NET 1.0, .NET Framework)
CATEGORYWeb Files
MIME TYPEtext/html
TYPEServer-side ASP.NET web page (source: HTML markup + ASP.NET/C#/VB.NET); also seen as a URL suffix, not a downloadable document

Programs that open ASPX files

Windows4 apps
Visual Studio Freemium For developers: open the ASP.NET project to edit and run the .aspx source. The standard IDE for Web Forms.
Notepad Open-source Open to inspect the raw source as text - every .aspx file is plain text.
Web browser (Chrome, Edge, Firefox) Free Only useful if the .aspx 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.
Visual Studio Code Free Open the .aspx as text to read or edit its markup/code. Free and cross-platform.
macOS2 apps
Visual Studio Code Free Open the .aspx source as text to read or edit it.
Web browser (Safari, Chrome) Built-in Only if the file is a saved HTML page - opens that static HTML, not the live ASP.NET application.
Linux2 apps
Visual Studio Code Free Open the .aspx source as text for reading or editing.
gedit / any text editor Open-source Open directly - the file is plain text.

Technical details

deep spec
DeveloperMicrosoft
MIME typetext/html
Source file formatUTF-8 plain text; no binary signature; typically begins with a <%@ Page %> directive
Code-behind pairingEach .aspx file pairs with .aspx.cs (C#) or .aspx.vb (VB.NET) plus an auto-generated .aspx.designer.cs control-declaration file
Supported code languagesC# and VB.NET; J# was supported in early .NET Framework versions but discontinued with Visual Studio 2008
Page directive syntax<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Page.aspx.cs" Inherits="Namespace.Page" %>
Server controlsBuilt-in <asp:*> Web Server Controls (e.g. <asp:Button>, <asp:GridView>, <asp:TextBox>) rendered as HTML at runtime
ViewStatePage and control state persisted between postbacks in a hidden form field named __VIEWSTATE (Base64-encoded binary serialization)
Page lifecycleFixed event sequence: PreInit → Init → Load → Control events → PreRender → SaveViewState → Render → Unload
Compilation modelJIT-compiled to a .NET assembly on first request; cached in the Temporary ASP.NET Files directory
Hosting requirementRequires IIS on Windows (or Mono on Linux/macOS); ASP.NET Web Forms are not included in ASP.NET Core (.NET 5+)
Event modelPostback-driven: form submissions trigger server-side event handlers (e.g. Button_Click) via HTTP POST back to the same page
Master pagesLayout templates stored in .master files; referenced via MasterPageFile="~/Site.master" in the <%@ Page %> directive
Session and stateBuilt-in server-side Session object (Session["key"]), Application state, and integrated Forms Authentication via web.config
Released2002 (ASP.NET 1.0, .NET Framework)
Specificationlearn.microsoft.com

ASPX conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with ASPX 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 ASPX files.

Frequently asked questions

Why did a website download an .aspx file instead of a PDF?
The server generated your document through an ASP.NET page but sent the wrong file type/name. The download is usually the real PDF - rename it from .aspx 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 .aspx 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 Visual Studio or VS Code.
What does .aspx mean at the end of a web address?
It means the page is built with ASP.NET (Active Server Page Extended) 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.
Can I convert an .aspx file to PDF?
Not with a converter. If an .aspx arrived where a PDF should have, it almost certainly IS the PDF with the wrong extension - rename it to .pdf. A genuine .aspx is server code and has nothing to convert.
Why won't my .aspx file open on my phone or Mac?
Because it isn't a regular document - there's no app that 'runs' an .aspx 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).
Is an .aspx file safe?
Generally yes. As a URL it's just a web page; as a download it's usually harmless HTML or a misnamed document. Open unexpected .aspx downloads as text first if you're unsure, and be wary only of untrusted sources.

References

1Microsoft Learn - ASP.NET Web Forms overviewlearn.microsoft.com
2Microsoft Learn - ASP.NET page life cycle / .aspx pageslearn.microsoft.com

Keep exploring

across the database

Top extensions this week

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

Related extensions

.CRDOWNLOADChrome Partial Download File
.JNLPJava Network Launch Protocol file
.WEBARCHIVESafari Web Archive
.PARTPartial Download File
.DOWNLOADPartial / Incomplete Download File
.HTMHTML Web Page (8.3 "htm" spelling of html)

Free file tools

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

Open the toolbox

Browse file extensions A-Z