.JSP

JSP File

Jakarta Server Pages (formerly JavaServer Pages)
Ask a question
QUICK ANSWER

A JSP file is a Jakarta Server Pages source file - a web page that runs on a Java server such as Apache Tomcat, which executes embedded Java code and sends your browser plain HTML. You never receive the .jsp itself. If a site downloaded a .jsp when you expected a PDF or invoice, rename the file to .pdf (or .jpg) and open it. Developers edit .jsp source in VS Code, IntelliJ IDEA, or Eclipse.

Developer: Sun Microsystems (1999); now Eclipse Foundation (Jakarta EE) Category: Web Files Open standard MIME: text/html
OPENS ON Windows macOS Linux

On this page

19k+ extensions indexed
Last reviewed Jul 21, 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 JSP file format?

.jsp is a server-side file used for generating dynamic web content. Originally introduced by Sun Microsystems in 1999 as JavaServer Pages, the format was renamed Jakarta Server Pages in 2019 when stewardship passed to the Eclipse Foundation under the Jakarta EE umbrella. Like PHP or ASP files, a .jsp file embeds executable code within HTML markup - but the embedded language is Java. The file stores program logic on the server, which processes it and sends the finished HTML page to the browser.

.jsp source files are plain text. Java code is embedded via scriptlet tags (<% ... %>), expression tags (<%= ... %>), or the JSP Expression Language (${...}). Modern projects often use JSTL to keep business logic out of the template. If the page is written as well-formed XML, the .jspx extension is used instead.

Client-side considerations. The user does not need to know which technology a given website uses. The browser receives only the HTML output generated by the server - the .jsp layer is completely hidden from visitors. No Java Virtual Machine or special tools are needed to open a .jsp source file; a standard text editor is enough.

Security & safety

RISK: LOW

The .jsp extension says nothing about safety on its own - in a URL it's just a normal web page; treat the site as any website (watch for phishing on login/banking pages). A downloaded .jsp is typically harmless HTML or a misnamed document, and opening it in a text editor is always safe. Caution only if an unexpected .jsp download arrives from an untrusted source - inspect it as text before renaming, and never run anything it tries to launch. (For server operators, malicious uploaded .jsp 'web shells' are a server-side concern, not a risk to someone merely viewing the file.)

Format details

in a nutshell
FULL NAMEJakarta Server Pages (formerly JavaServer Pages)
DEVELOPERSun Microsystems (1999); now Eclipse Foundation (Jakarta EE)since 1999 (JavaServer Pages 1.0); renamed Jakarta Server Pages under Jakarta EE (2019)
CATEGORYWeb Files
MIME TYPEtext/html
TYPEserver-side Java web page source (plain text: HTML + embedded Java/JSP tags)
STANDARDOpen · royalty-free

Programs that open JSP files

Windows5 apps
Eclipse IDE Open-source Open the dynamic web project to edit and run JSP on a configured Tomcat server.
IntelliJ IDEA Freemium For developers: open the project to edit, run and debug JSP with full Java/Tomcat support. Community edition is free; JSP tooling is in Ultimate.
Notepad Open-source Open to inspect the raw source as text - every .jsp file is plain text.
Visual Studio Code Free Open the .jsp as text to read or edit its markup/code. Free, cross-platform, with Java extensions.
Web browser (Chrome, Edge, Firefox) Free Only useful if the .jsp is actually a saved HTML page - it will NOT run server-side Java or fetch live data.
macOS3 apps
Eclipse IDE Open-source Open the web project to edit/run JSP.
IntelliJ IDEA Freemium Edit and run JSP in a full Java IDE.
Visual Studio Code Free Open the .jsp source as text to read or edit it.
Linux3 apps
Eclipse IDE Open-source Edit and run JSP on a configured server.
Visual Studio Code Free Open the .jsp source as text for reading or editing.
Any text editor (gedit, nano, vim) Open-source Open directly - the file is plain text.

Technical details

deep spec
File typeServer-side Java web template; plain-text source mixing HTML markup with Java scriptlets, directives, and EL expressions
MIME typetext/html
Text encodingPlain UTF-8 (charset declared in the `<%@ page %>` directive; other encodings such as ISO-8859-1 are supported)
Binary signatureNone - `.jsp` files carry no magic bytes; source commonly opens with `<%@ page ... %>` or a DOCTYPE/HTML declaration
Scriptlet syntax`<% ... %>` for code blocks, `<%= ... %>` for output expressions, `<%! ... %>` for field and method declarations
Expression Language`${...}` for immediate evaluation; `#{...}` for deferred evaluation - both access beans and scoped variables without embedding raw Java
Server requirementRequires a Jakarta EE-compatible servlet container (Apache Tomcat, Eclipse Jetty, WildFly, etc.); cannot be served by a plain HTTP server
Compilation modelContainer auto-translates `.jsp` to a Java servlet source file, compiles it to `.class` bytecode, then caches and reuses the compiled class
XML-based variant`.jspx` (JSP Document) - strictly well-formed XML dialect; tag libraries referenced via XML namespaces instead of `<%@ taglib %>`
Tag library supportJSTL (Jakarta Standard Tag Library) and custom tag libraries described by `.tld` descriptor files reduce reliance on scriptlets
Deployment packagingBundled inside a `.war` (Web Application Archive) alongside servlets, classes, and static resources for deployment to a servlet container
Implicit scope objectsFour built-in scopes - page, request, session, and application - expose attributes accessible across the corresponding lifetime
Implicit variablesNine predefined variables available without declaration: `request`, `response`, `out`, `session`, `application`, `config`, `pageContext`, `page`, `exception`
Stewardship historyCreated by Sun Microsystems (JSP 1.0, 1999); became part of Java EE; transferred to Eclipse Foundation as Jakarta Server Pages under Jakarta EE in 2019
Released1999 (JavaServer Pages 1.0); renamed Jakarta Server Pages under Jakarta EE (2019)
Open standardYes · royalty-free
Specificationjakarta.ee

JSP conversions

Community Q&A

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

Frequently asked questions

Why did a website download a .jsp file instead of a PDF?
The server generated your document through a JSP page but sent the wrong file type/name. The download is usually the real PDF - rename it from .jsp 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 a .jsp 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, IntelliJ IDEA or Eclipse.
What does .jsp at the end of a web address mean?
It means the page is built with Jakarta/JavaServer Pages and runs on a Java web server (like Apache Tomcat). 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 a .jsp file to PDF?
Not with a converter. If a .jsp arrived where a PDF should have, it almost certainly IS the PDF with the wrong extension - rename it to .pdf. A genuine .jsp is server code with nothing to convert.
Why won't my .jsp file open on my phone or Mac?
Because it isn't a regular document - no app 'runs' a .jsp outside a Java web server. Open it as text to see what it is, or rename it to the file type you actually expected (e.g. .pdf).
What's the difference between JSP and PHP or ASPX?
All three are server-side page technologies that generate HTML. JSP uses Java (on servers like Tomcat), PHP uses the PHP language, and ASPX uses Microsoft's ASP.NET. To the browser they all just return HTML.

References

1Jakarta EE - Jakarta Server Pages specificationjakarta.ee
2Apache Tomcat - Jasper 2 JSP Engine How-Totomcat.apache.org

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.DATProgram Data File (generic)
4.JPGJPEG Image
5.RPMSGRestricted Permission Message
6.EXEWindows Executable (Portable Executable)
7.JSONJavaScript Object Notation file
8.PARTPartial Download File
9.BINCD/DVD Disc Image (BIN/CUE)
10.DBSQLite Database File

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