An SWF file is an Adobe Flash animation, game or interactive app. Adobe ended Flash Player support on December 31, 2020 and blocked Flash content from running on January 12, 2021, so no current browser, and nothing built into Windows 11, can open an SWF file on its own.
The best tool today is Ruffle, a free, open-source Flash Player emulator. Use the Ruffle desktop app for a local .swf file, or the Ruffle browser extension for Flash content on old websites. For classic Flash games, use the Flashpoint Archive, which has preserved more than 200,000 games and animations. The old standalone Flash Player projector still runs some files, but it gets no security updates, so it is a last resort.
And whatever you do, never install a "Flash Player" download from a third-party website. Fake Flash installers were one of the most common malware tricks of the last decade, and that hasn't changed.
Pick the right tool
Option | Best for | Safety | Platforms |
|---|
Ruffle desktop app | Opening a local .swf file | High (memory-safe emulator) | Windows, macOS, Linux |
Ruffle browser extension | Flash content on old websites | High | Chrome, Edge, Firefox, Safari 16.4+ |
Flashpoint Archive | Classic web games and animations | Good (curated, uses sandboxed players) | Windows, macOS, Linux |
Flash Player projector | Files Ruffle can't run yet | Low (unpatched, end-of-life) | Windows, macOS, Linux |
JPEXS Free Flash Decompiler | Viewing and extracting contents | Good (does not need to run the file) | Windows, macOS, Linux (Java) |
If you only remember one row, make it the first. Ruffle handles most files, and when it doesn't, Flashpoint is the next place to look.
Opening an SWF file with Ruffle
Ruffle is a Flash Player emulator written in Rust, licensed under MIT/Apache 2.0. It runs natively on the desktop and as WebAssembly in the browser. Because Rust is memory-safe, and because the browser version runs inside the browser's own sandbox, Ruffle avoids the class of security problems that made Flash Player dangerous. That is why so many game and archive sites now use it to keep their Flash content playable.
The desktop app
Download the build for your operating system from the ruffle.rs downloads page. As of October 2026, it lists 0.7.1 as the latest stable release, plus nightly builds made almost every day. Ruffle is portable, so you just extract the archive; there is no installer. Open the app and pick your SWF file, or run it from a terminal:
# Windows (PowerShell or Command Prompt, from the extracted folder)
ruffle.exe game.swf
# macOS
./Ruffle.app/Contents/MacOS/ruffle game.swf
# Linux (Flatpak, recommended by the Ruffle wiki)
flatpak run rs.ruffle.Ruffle game.swf
# See every option your build supports
ruffle --help
On macOS the first launch may be blocked because the app came from the internet. Right-click it, choose Open and confirm.
The browser extension
The extension swaps Flash content on web pages for Ruffle automatically, so old sites with embedded SWF files work again. On Chrome and Edge, install it from the Chrome Web Store or Microsoft Edge Add-ons; on Firefox, from Firefox Add-ons. Safari needs version 16.4 or later, and the extension ships inside the macOS download from ruffle.rs rather than the App Store, so you have to allow unsigned extensions from Safari's Develop menu.
Install only from those stores or the ruffle.rs downloads page. Search results for "Flash extension" include look-alikes that have nothing to do with the Ruffle project.
Phones are the weak spot. iOS and Android can't open SWF files natively, and the extension is for desktop browsers. Websites that self-host Ruffle can play SWF content in mobile browsers, but for a local file a desktop computer is the practical option.
What Ruffle can and can't play
SWF files contain ActionScript from one of two generations, and it matters here. ActionScript 1 and 2 (AVM1) was used by most older animations and games, roughly up to Flash 8. ActionScript 3 (AVM2) arrived with Flash Player 9 and powered later, more complex games and apps.
Ruffle's compatibility page, as of October 2026, rates ActionScript 1/2 support at 99% of the language and 82% of the API, and ActionScript 3 at 90% of the language and 82% of the API. In practice, older AVM1 content mostly plays well, while newer ActionScript 3 games are often playable but may glitch. If a file fails, try a nightly build, since fixes land there first. If that fails too, check whether the game is in Flashpoint, which may run it with a different player.
Playing classic games with Flashpoint
The Flashpoint Archive is a community preservation project. It describes itself as the world's largest effort to preserve web-based games, animations and interactive experiences, with more than 200,000 saved across Flash, Shockwave, HTML5 and other web technologies. It comes in two editions:
Edition | Version | Size | Internet needed? |
|---|
Flashpoint Infinity | 14.0.3 | Small download. Games are fetched on demand, so the install grows to roughly 1-4 GB | Yes |
Flashpoint Ultimate | 14 | The whole archive, about 2.28 TB | No |
Choose Infinity unless you have a very specific reason to want 2.28 TB on disk. Install it, search for the game by name in the launcher and click Play. Flashpoint picks the right player for each title, so there's nothing to configure. Infinity also runs on macOS (Sierra or later) and most 64-bit Linux distributions. Download it only from flashpointarchive.org.
Most of what Flashpoint preserves was originally published free online, but copyright law differs by country. If you plan to redistribute or reuse anything, check the rights holder's terms.
The Flash Player projector, and why I'd avoid it
Adobe used to publish a standalone Flash Player, called the projector, that opens SWF files outside the browser. Developers used its "content debugger" build for testing, and it can still run some files Ruffle can't handle yet.
The problem is that it is end-of-life software with no security fixes, so a malicious SWF can exploit known Flash vulnerabilities. Availability is also shaky. Adobe said in 2020 it would not offer downloads after end of life; developer guides report that the debugger builds were still reachable on Adobe's own fpdownload.macromedia.com server as of mid-2026, but Adobe can remove them at any time. Any copy hosted anywhere else may have been modified.
If you must use it, use it only with SWF files you created or fully trust, ideally on a machine or virtual machine with no network access.
Converting SWF to MP4
The right method depends on what's inside the SWF, so check that first. Some SWF files are just a wrapper around ordinary video, and FFmpeg will list the streams:
ffmpeg -i movie.swf
If FFmpeg shows video and audio streams, convert directly:
ffmpeg -i movie.swf -c:v libx264 -crf 20 -pix_fmt yuv420p -c:a aac movie.mp4
If it shows no streams, the SWF is vector animation or ActionScript-driven and FFmpeg can't render it. You then have two options.
Record it while it plays
This works for anything. Open the SWF in the Ruffle desktop app, open OBS Studio (free, from obsproject.com), add a Window Capture source for the Ruffle window, set the recording format to MP4 in OBS settings, and record while the animation plays through. You get exactly what you saw on screen, though buttons and game logic are naturally lost in a video.
Export frames with JPEXS
For the best quality on animations, export the frames as PNG images with JPEXS (covered below) and assemble them with FFmpeg at the SWF's frame rate:
# Frames exported as 1.png, 2.png, 3.png ... at the SWF's frame rate (24 fps here)
ffmpeg -framerate 24 -i %d.png -c:v libx264 -crf 18 -pix_fmt yuv420p animation.mp4
Check the frame naming in your export folder and adjust the pattern. Frame export renders only the timeline, so content that ActionScript generates at runtime may be missing. For script-heavy files, record instead.
Getting SWF content onto a modern website
There is no button that turns any SWF into equivalent HTML5 code. The realistic paths, from least to most work:
- Run the SWF with Ruffle on the web. This is emulation, not conversion, but for most website owners it is the fastest fix: your SWF stays the same and Ruffle plays it.
- Export frames and shapes with JPEXS to HTML5 Canvas and SVG. This works for simple animations.
- Rebuild it. JPEXS can convert an SWF to an FLA project file; if you have Adobe Animate, open the FLA, publish to HTML5 Canvas, and port the ActionScript to JavaScript by hand.
For most sites, the first option is the right answer. Self-hosting Ruffle takes a single script tag. The Ruffle wiki documents the npm package @ruffle-rs/ruffle and this CDN option:
<div id="flash-container"></div>
<script src="https://unpkg.com/@ruffle-rs/ruffle"></script>
<script>
window.RufflePlayer = window.RufflePlayer || {};
window.addEventListener("load", () => {
const ruffle = window.RufflePlayer.newest();
const player = ruffle.createPlayer();
document.getElementById("flash-container").appendChild(player);
player.ruffle().load("/media/intro.swf");
});
</script>
The unpkg URL always serves the newest release. In production, pin a specific version or host the files yourself so an update can't change your site unexpectedly.
If you maintain a legacy intranet, the older C# Corner article on enabling SharePoint 2010 to render SWF files shows how that content used to be served. With Flash gone, Ruffle is the piece you'd add to make it display again.
Looking inside an SWF with JPEXS
JPEXS Free Flash Decompiler (FFDec) is an open-source SWF decompiler and editor, hosted on GitHub. It runs on Java on Windows, macOS and Linux. As of October 2026 the latest release is 26.4.0, offered as a Windows MSI, a macOS package, a Linux DEB and a cross-platform ZIP.
It reads ActionScript 1, 2 and 3; extracts images, sounds, fonts, shapes and text; exports frames as PNG, GIF, AVI, SVG, HTML5 Canvas, PDF and other formats, and sounds as MP3, WAV or FLV; converts the SWF to an FLA or XFL project; and lets you edit scripts or replace images and text, then save a modified SWF.
Using it is straightforward: choose Open, select the SWF, and expand the tree on the left (scripts, images, sounds, frames). Right-click any node to export it.
Because JPEXS reads the file without executing it, it's also the safest way to inspect an unknown SWF before you play it. Only decompile files you own or have permission to examine, since decompiling someone else's work may break its licence.
Identifying SWF files in bulk with C#
SWF (pronounced "swiff") is the compiled format that Adobe Flash, and Macromedia Flash before it, produced. The name originally stood for Shockwave Flash and was later given as Small Web Format. A file can hold vector graphics, bitmaps, audio, video and ActionScript code, which is why one SWF is a short cartoon and another a complete game. You can recognise one from its first three bytes:
Signature | Meaning |
|---|
FWS (46 57 53) | Uncompressed SWF |
CWS (43 57 53) | zlib-compressed SWF (the most common) |
ZWS (5A 57 53) | LZMA-compressed SWF (less common) |
If you're cataloguing an old content library, the first eight bytes also give you the Flash version and uncompressed size, with no Flash tooling at all:
using System.Buffers.Binary;
using System.Text;
static (string Compression, int Version, uint Length) ReadSwfHeader(string path)
{
Span<byte> header = stackalloc byte[8];
using var stream = File.OpenRead(path);
stream.ReadExactly(header);
string signature = Encoding.ASCII.GetString(header[..3]);
string compression = signature switch
{
"FWS" => "None",
"CWS" => "zlib",
"ZWS" => "LZMA",
_ => throw new InvalidDataException($"{path} is not an SWF file")
};
int version = header[3]; // Flash Player version
uint length = BinaryPrimitives.ReadUInt32LittleEndian(header.Slice(4, 4)); // uncompressed size
return (compression, version, length);
}
foreach (var file in Directory.EnumerateFiles(@"C:\legacy\flash", "*.swf"))
{
var (compression, version, length) = ReadSwfHeader(file);
Console.WriteLine($"{Path.GetFileName(file),-30} v{version,-3} {compression,-5} {length:N0} bytes");
}
A version of 9 or higher suggests the file may use ActionScript 3, which tells you which files are most likely to need testing in Ruffle. It's also useful if your library includes SWF files generated by older .NET code, along the lines of converting images to SWF format in C#.
Why Flash went away, and what not to do about it
Adobe announced Flash's end of life in 2017, giving websites three years to move to HTML5, WebGL and WebAssembly; C# Corner covered it at the time in Adobe to Stop Flash Player. Security was the main reason. Flash Player ran as a browser plug-in with deep system access and had a long history of critical vulnerabilities that attackers exploited. Mobile finished the job, since iPhones never supported Flash and Android dropped it, and HTML5 video, Canvas, CSS animation and WebGL replaced almost everything Flash did without a plug-in. All major browsers have since removed Flash support completely.
Businesses still running internal Flash apps were pointed by Adobe to HARMAN, its official distribution licensing partner, for post-EOL support. That route is for organisations, not home users.
For everyone else, the history explains the warnings. Don't download "Flash Player" from anywhere except Adobe; fake Flash updates are a classic way to deliver adware and malware. Avoid the China-only Flash build: Adobe licensed Flash distribution in China to a local partner, and in 2021 researchers at Minerva Labs reported that this build installed adware. Don't run an old browser to get Flash back, because a 2019-era browser with Flash enabled is exposed to years of unpatched vulnerabilities. Be wary of online SWF converters too, since uploading a file sends it to a third party and many of those sites are ad-heavy.
Treat an unknown SWF like an unknown program: inspect it in JPEXS if you're unsure, then play it in Ruffle. Between them, those two free tools are all most people need.
Join the conversation! Your thoughts help the community grow.