.PDE

PDE File

Processing Sketch
Ask a question
QUICK ANSWER

A PDE file is a Processing sketch - plain-text Java-like source code for a program made in Processing, the open-source creative-coding environment. To open it, install the free Processing application, place the file in a folder with the same name, then press Run. You can also read the code in any text editor without installing anything.

Developer: Processing Foundation (Ben Fry and Casey Reas) Category: Developer Files Open standard MIME: text/x-processing
OPENS ON Windows macOS Linux Web
Related: .DO · .MD · .HEX · .XSD

On this page

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

A .pde file contains the source code of an application written in the Processing programming language. .pde files are saved by default in a dedicated folder along with other files used by the application - for example, image assets. That folder must share the exact same name as the sketch; the Processing Development Environment concatenates all .pde files in the folder and compiles them as one program. The two core functions in any sketch are setup(), which runs once on startup, and draw(), which loops continuously to handle animation and interaction.

Released in 2001 by Ben Fry and Casey Reas at the MIT Media Lab, Processing was designed with the purpose of teaching fundamentals of computer programming to people with no prior programming background. It is implemented in Java and uses a simplified Java-like syntax. Processing is known for its visual presentation of code and processes, making it an ideal tool for visual art, generative design, and data visualization. It is distributed under an open-source licence and is maintained today by the Processing Foundation.

Early Arduino IDE versions also used the .pde extension for sketches before switching to .ino in Arduino IDE 1.0 (2011).

Security & safety

RISK: LOW

A .pde is plain-text source code - it doesn't run by itself and is safe to read in any editor. The realistic caution is the same as for any downloaded code: a Processing sketch is full Java and can access the file system, network and external libraries, so read it before pressing Run if it comes from an untrusted source. The file itself carries no auto-executing payload; risk only arises when you choose to compile and run it.

Format details

in a nutshell
FULL NAMEProcessing Sketchaka Processing source file, PDE file
DEVELOPERProcessing Foundation (Ben Fry and Casey Reas)since 2001 (Processing, MIT Media Lab); .pde is the Processing Development Environment sketch extension
MIME TYPEtext/x-processing
TYPEPlain-text Java-based source code (Processing sketch)
STANDARDOpen · royalty-free
This extension is also used by…
  • PowerDesk encrypted file - Some legacy databases list .pde for an encrypted file created by the PowerDesk file manager; niche/historical, unrelated to Processing.
  • Pro/DESKTOP / CAD design files - A few older CAD/design tools used .pde for project/design data.

Programs that open PDE files

Windows3 apps
Processing Open-source File > Open the .pde (it must be in a same-named folder), then press Run (the play button) to compile and launch the sketch's display window.
Visual Studio Code (+ Processing extension) Open-source Open the sketch folder; a Processing extension lets you run sketches via processing-java with richer editing than the PDE.
Notepad++ (read/edit only) Open-source Open the .pde to read or edit the source without running it - handy to inspect code quickly.
macOS1 app
Processing Open-source File > Open the sketch, then press Run. Same folder-name rule applies.
Linux1 app
Processing Open-source Open in the PDE and Run, or compile/run headless from the terminal with processing-java.
Web1 app
OpenProcessing Freemium Browse and run Processing sketches in the browser (p5.js-based); good for viewing/sharing sketches without installing Processing.

Technical details

deep spec
File categoryPlain-text Java-based source code (Processing sketch)
Character encodingUTF-8
MIME typetext/x-processing (also accepted as text/plain)
CompressionNone - uncompressed plain text
Sketch folder ruleThe main .pde file must reside in a folder of the same name (e.g., mySketch.pde inside a mySketch/ folder)
Multi-file compilationAll .pde files in the sketch folder are concatenated by the PDE and compiled as a single program
Core API patternsetup() runs once on launch for initialization; draw() loops continuously for animation and interaction
Host language / runtimeProcessed to Java source and compiled with javac; runs on the Java Virtual Machine (JVM)
Supported platformsWindows, macOS, Linux
File signature (magic bytes)None - plain text; identified by content patterns such as setup(), draw(), and Processing API calls
Typical file sizeA few hundred bytes to tens of KB (source code only)
Language mode variantsJava mode (default), Python mode (Processing.py), JavaScript mode (p5.js is the JS port)
Related Arduino extension.ino - Arduino sketches formerly used .pde before Arduino IDE 1.0 (2011) introduced the .ino extension
Developer / maintainerProcessing Foundation; created by Ben Fry and Casey Reas, originally at the MIT Media Lab (2001)
Primary use casesVisual art, generative design, data visualization, interactive media, programming education
Released2001 (Processing, MIT Media Lab); .pde is the Processing Development Environment sketch extension
Latest versionProcessing 4.x (current as of 2024-2026)
Open standardYes · royalty-free
Specificationprocessing.org

PDE conversions

Community Q&A

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

Frequently asked questions

What is a .pde file?
It's a Processing sketch - source code for a program written in Processing, the open-source language/editor for visual art and creative coding. It's plain-text Java-like code stored as the main file of a same-named sketch folder.
How do I open a .pde file?
Open it in the free Processing application (Windows/macOS/Linux) and press Run to see the sketch. To just read the code, any text editor works since it's plain text. (Browser option: OpenProcessing.)
Why does Processing say my sketch must be in a folder with the same name?
Processing requires the main .pde to live in a folder matching its filename (my_sketch.pde in a 'my_sketch' folder). Move the file into such a folder, or let the PDE create one when you open or save the sketch.
Is a .pde the same as an Arduino .ino?
They're related: early Arduino (forked from Processing) used .pde too, until Arduino IDE 1.0 in 2011 switched to .ino. Today .pde is a Processing sketch and .ino is an Arduino sketch - both plain-text, but for different platforms.
How do I make a runnable app or image from a .pde?
In the Processing editor use File > Export Application to bundle a standalone app. To export graphics, use the PDF/image libraries (e.g. processing.pdf) to save the sketch's output.
Isn't .pde a PowerDesk encrypted file?
That's a niche/legacy meaning some databases list. The current, dominant .pde type is a Processing sketch, which is what matches the Processing program and developer here.

References

1Processing - Downloadprocessing.org
2Processing - Environment (PDE) referenceprocessing.org

Keep exploring

across the database

Top extensions this week

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

Related extensions

.DOStata Do-File
.MDMarkdown Document
.HEXIntel HEX File
.XSDXML Schema Definition
.MAPSource Map (JavaScript / CSS)
.CONFIGConfiguration File

Free file tools

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

Open the toolbox

Browse file extensions A-Z