.P21

P21 File

STEP Part 21 Exchange File (ISO 10303-21)
Ask a question
QUICK ANSWER

A .p21 file is a STEP CAD model in the ISO 10303-21 (Part 21) encoding - the same format as .step and .stp. Open it for free with FreeCAD, Open Cascade CAD Assistant, or Autodesk Viewer online. If a viewer refuses it, rename the file from .p21 to .step - the contents are identical.

Developer: ISO (International Organization for Standardization) Category: 3D Image Files Open standard MIME: model/step
OPENS ON Windows macOS Linux Web
Related: .DCM · .STEP · .SKP · .STP

On this page

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

.p21 is a neutral 3D CAD exchange file governed by ISO 10303-21, the clear-text encoding layer of STEP (Standard for the Exchange of Product model data). It is mechanically identical to .step and .stp - same ASCII structure, same parsers, same content - with .p21 designated by ISO as the preferred extension for general-purpose Part 21 exchange that is not tied to a specific application protocol.

Every .p21 file is plain ASCII text. The first line is always the literal string ISO-10303-21;, which identifies the format. A HEADER section follows, recording the file description, authoring tool, and the application protocol name in the FILE_SCHEMA entry. The bulk of the file is the DATA section: numbered entity records such as #1=CARTESIAN_POINT(…); that encode exact boundary-representation (B-rep) solid geometry - analytic surfaces, precise edges, and solids, not a triangle mesh.

Because .p21 carries true B-rep geometry, it preserves the exact dimensions and topology computed by the originating CAD system. This makes STEP the standard neutral interchange format in aerospace, automotive, and industrial engineering. The FILE_SCHEMA entry names the application protocol: AP203 for configuration-controlled design, AP214 for automotive parts, and AP242 (the current recommended protocol) for managed model-based 3D engineering with PMI annotations and kinematics.

Any STEP-capable application opens .p21 files; FreeCAD, Autodesk Fusion 360, and CATIA are common examples. For 3D printing, tessellate the geometry first to an STL or similar mesh format. Compared with IGES, the older neutral-exchange alternative, STEP is preferred for all new work.

Security & safety

RISK: LOW

A .p21 STEP file is plain ASCII geometry data - no executable code, safe to open. Real-world concerns are non-malicious: large assemblies load slowly, and a STEP export reveals exact geometry, so a recipient can measure everything (watch what you share). As always, confirm a 'part.p21' isn't an executable in disguise. If the file is actually a PAR recovery volume, it's binary parity data, also harmless on its own.

Format details

in a nutshell
FULL NAMESTEP Part 21 Exchange File (ISO 10303-21)aka STEP file, ISO 10303-21 file
DEVELOPERISO (International Organization for Standardization)since 1994 (ISO 10303-21); .p21 designated for general Part 21 exchange files
MIME TYPEmodel/step
TYPENeutral 3D CAD model (boundary-representation geometry), plain ASCII text
STANDARDOpen · royalty-free
This extension is also used by…
  • PAR / Parchive recovery volume - Parity-archive recovery files are numbered .p01, .p02 … so .p21 can be the 21st PAR recovery volume (QuickPar/MultiPar); these are binary parity data, unrelated to STEP.
  • Numbered split-archive / volume part - Some tools name sequential split parts .pNN, so a stray .p21 may be one piece of a multi-volume archive set.

Programs that open P21 files

Windows4 apps
FreeCAD Open-source File -> Open the .p21 (rename to .step if the dialog filters it out) to view, measure, and edit the B-rep geometry. Free and powerful.
eDrawings Viewer Free Free Dassault viewer; open the STEP/.p21 to rotate, section, and measure.
CAD Assistant (Open Cascade) Free Free offline viewer/converter; open the .p21 to view, measure, and export (e.g. to STL/glTF).
Autodesk Fusion 360 Freemium Insert/Open to import the .p21 for full editing. Free for personal/hobby use.
macOS2 apps
FreeCAD Open-source File -> Open the .p21 for viewing and editing; runs natively on macOS.
CAD Assistant (Open Cascade) Free Free viewer/converter; open to inspect and export the model.
Linux1 app
FreeCAD Open-source File -> Open the .p21; the standard free CAD tool on Linux.
Web2 apps
Autodesk Viewer Free Upload the file in a browser to view, rotate, and measure - no install (rename to .step if needed).
ShareCAD Free Free online viewer for STEP/STP and many CAD formats; upload and view.

Technical details

deep spec
EncodingPlain ASCII text (ISO 10303-21 clear-text encoding); no binary sections
Format signatureFirst line is always the literal text `ISO-10303-21;` - no binary magic bytes
File terminatorLast line is always `END-ISO-10303-21;`
File structure`HEADER` section (FILE_DESCRIPTION, FILE_NAME, FILE_SCHEMA) followed by one or more `DATA` sections of numbered entity records, then the end marker
Entity referencingEach geometry entity carries a unique integer reference (`#1`, `#2`, …) that later entities cite by number, forming a directed graph of relationships
Geometry representationExact boundary-representation (B-rep) solid geometry - analytic surfaces, edges, and vertices; not a polygon or triangle mesh
Application protocolDeclared in `FILE_SCHEMA`; common values: `AP203` (design), `AP214` (automotive), `AP242` (model-based 3D engineering, current recommended)
MIME type`model/step` (primary IANA type); also accepted: `application/step`, `application/p21`
CompressionNone in a raw `.p21` file; a ZIP-compressed variant is distributed as `.stpz`
Typical file sizeTens of KB for simple parts; hundreds of MB for large assemblies
Relationship to .STEP / .STPMechanically identical format and parsers; ISO guidance reserves `.stp`/`.step` for AP-specific files and suggests `.p21` for general Part 21 exchange
Supported data scope3D solid geometry, assembly hierarchy, product metadata, tolerances; AP242 adds PMI annotations and kinematic joints
Governing technical committeeISO/TC 184/SC 4 (Industrial data)
Cross-platform supportFormat is OS-independent plain text; supported on Windows, macOS, Linux, and via web-based viewers
Released1994 (ISO 10303-21); .p21 designated for general Part 21 exchange files
Latest versionISO 10303-21:2016 (3rd edition); application protocols up to AP242 (2014, ed.2 2020)
Open standardYes · royalty-free
Specificationwww.iso.org

P21 conversions

Community Q&A

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

Frequently asked questions

What is a .p21 file?
It's a STEP CAD model in the ISO 10303-21 (Part 21) text encoding - the same format as .step and .stp. It stores a 3D part or assembly as exact CAD geometry you can view, measure, and edit in CAD software.
Is .p21 the same as .step or .stp?
Yes - identical format. ISO suggests .p21 for general Part 21 exchange files and .stp/.step for protocol-conforming STEP files, but the file contents are the same. You can rename between them safely.
How do I open a .p21 file for free?
Use FreeCAD or Open Cascade CAD Assistant (Windows/macOS/Linux), eDrawings, or an online viewer like Autodesk Viewer or ShareCAD. If a viewer won't list .p21, rename it to .step and open it.
How do I convert a .p21 to STL for 3D printing?
Open it in FreeCAD, Fusion 360, or CAD Assistant and Export as STL, choosing a mesh resolution. Then load the STL into a slicer (Cura, PrusaSlicer). STEP/.p21 isn't a printable mesh, which is why this step is needed.
My .p21 isn't CAD - it's a numbered recovery file. What is it?
Then it's a PAR/Parchive recovery volume (.p01, .p02 … .p21), used to repair incomplete downloads. Open it with QuickPar or MultiPar, not a CAD program. The .p21 extension is shared by two unrelated things.
Why does my .p21 open as plain text/code?
Because STEP IS a text format (it starts with 'ISO-10303-21;'). Your system just has no CAD app associated. Install FreeCAD or CAD Assistant and open it from there to see the 3D model.

References

1ISO 10303-21 - STEP file (Part 21) standardwww.iso.org
2Wikipedia - ISO 10303-21 (file extensions incl. .p21)en.wikipedia.org

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.BINCD/DVD Disc Image (BIN/CUE)
6.EXEWindows Executable (Portable Executable)
7.RPMSGRestricted Permission Message
8.NOMEDIAAndroid No-Media Marker File
9.MDMarkdown Document
10.TXTPlain Text File

Related extensions

.DCMDICOM Medical Image
.STEPSTEP - Standard for the Exchange of Product Data (ISO 10303)
.SKPSketchUp Document
.STPSTEP - Standard for the Exchange of Product Data (ISO 10303), .stp spelling
.MTLMaterial Template Library (Wavefront)
.MAX3ds Max Scene File (Autodesk 3ds Max)

Free file tools

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

Open the toolbox

Browse file extensions A-Z