About WAR Files
Web Application Archive
WAR (Web Application Archive) is a JAR file used to distribute Java web applications.
Family
Archives & Compressed
Extension
.war
MIME Type
application/java-archive
Can Use As
HOW WAR
CAME TO BE.
WAR — Web Application Archive — is the JAR variant for Java web applications. When Sun shipped Servlet 2.2 specification in 1999, WAR became the standard deployment unit for Java EE web apps: a ZIP archive containing compiled classes (in /WEB-INF/classes/), libraries (/WEB-INF/lib/), static resources (HTML, CSS, JS at the root), and a /WEB-INF/web.xml deployment descriptor. Drop the .war into a servlet container like Tomcat, Jetty, or GlassFish and the app deploys automatically.
For 20+ years WAR has been the enterprise Java deployment unit. Every Spring MVC app, every JSF/JSP app, every Java REST API hosted on a traditional application server shipped as .war. The newer Spring Boot trend of fat-JARs has partially replaced WAR (Spring Boot bundles an embedded Tomcat and ships as .jar), but WAR remains the dominant deployment format for legacy Java EE and any classical servlet container.
CURIOSITIES &
TRIVIA.
A .war is literally a ZIP — extract it and browse the exact directory structure that lives inside your Tomcat webapps/ folder.
The /WEB-INF folder inside every WAR is private to the server — clients cannot fetch its files via HTTP.
Spring Boot "embedded Tomcat" fat-JARs replaced many WAR deployments, but WAR remains dominant in enterprise Java EE.
An EAR (Enterprise ARchive) is a further wrapper that bundles multiple WARs and JARs — the enterprise deployment container.
GlassFish, WebSphere, WebLogic, and JBoss EAP all accept .war deployments identically — the format is truly portable.
STRENGTHS &
LIMITATIONS.
Strengths
- Standard Java EE deployment unit since 1999.
- ZIP-based — introspectable with any unzip tool.
- Auto-deployment in Tomcat, Jetty, GlassFish, and every Java servlet container.
- Well-defined web.xml deployment descriptor.
- Compatible with any JVM.
Limitations
- Requires a servlet container runtime — heavier than a self-contained fat-JAR.
- Spring Boot fat-JARs reduce WAR's relevance in new projects.
- Not containerized — Docker-era deployment prefers JAR + embedded server.
- File sizes balloon with dependency libraries in /WEB-INF/lib/.
Typical Sizes & Weights
Simple Servlet app
500 KB - 5 MB
Typical Spring MVC app with libs
20-100 MB
Large enterprise WAR
200-800 MB
Technical Specifications
- MIME type
- application/java-archive
- Extension
- .war
- Container
- ZIP (JAR format)
- Required descriptor
- WEB-INF/web.xml
- Runtime
- Servlet container (Tomcat, Jetty, GlassFish, etc.)
CONVERT FROM
WAR
Common Use Cases
Java EE deployment, web server apps
Popular WAR conversions
The most-requested destinations when starting from WAR.
Frequently Asked Questions about WAR
Frequently Asked Questions
WAR (Web Application Archive) is an archive format used to bundle multiple files and folders into a single compressed file. The archive preserves the directory structure and typically reduces total size via compression. WAR sits in the archives & compressed family and has specific strengths around compression ratio, speed, or platform support.
7-Zip, WinRAR, The Unarchiver (macOS), and the built-in archive utilities on Windows and macOS open most WAR files. For command-line extraction, 7z, unar, or the format-specific tool handles WAR cleanly. If your extractor does not recognise WAR, convert to ZIP first — ZIP opens on every operating system without extra software.
Upload the WAR to KaijuConverter and pick ZIP, 7Z, TAR.GZ, or RAR as the target. Our pipeline extracts the original archive and re-compresses the contents into the target format. File permissions, timestamps, and directory structure are preserved where both formats support them.
Depends on the goal. ZIP is the universal baseline — every OS extracts it out of the box. Formats like 7Z or TAR.GZ compress better but require specific tools. WAR may win on compression ratio, password support, or OS integration for specific workflows; ZIP wins on raw compatibility.