SWF HTML5
File conversion

Convert SWF to HTML5

QUICK ANSWER
Is it possible to convert SWF to HTML5?
Yes - SWF converts to HTML5.

If you still have the original .fla project file, Adobe Animate can export it as HTML5 Canvas. If you only have the .swf, the practical option is to embed Ruffle on the host page so the SWF plays without any conversion. There is no reliable automatic converter from a compiled SWF to standalone HTML5.

5 programs
Also to HTML5: CAPX · FLA

On this page

Tested on macOS, Windows & Linux
Last verified Oct 2026

More free converters

HEIC, PNG, WEBP, MP3 and more - every tool here is free.

Open the toolbox

Why convert SWF to HTML5?

Adobe Flash Player reached end-of-life on 31 December 2020 and every major browser removed the plug-in. SWF files no longer play in browsers without a replacement runtime, making migration or emulation necessary for any Flash content still in use.

How to convert SWF to HTML5

Adobe Animate CC APP

Open the original .fla in Adobe Animate, convert the document type to HTML5 Canvas, rewrite any ActionScript 3 logic as JavaScript, then publish to get an .html file, a .js file and an assets folder.

Programs that convert SWF

SWF Decompiler
Free Flash to HTML5 Converter
SWF Decompiler for Mac
FlashCode
Free Flash to HTML5 Online Converter

About these formats

Quality & what to watch

  • Adobe Animate requires the original editable .fla file, not the compiled .swf - the compiled output does not contain the source structure needed for an HTML5 export.
  • ActionScript 3 code is not auto-translated by Animate; it must be rewritten as JavaScript, which can require significant development effort.
  • Ruffle (ruffle.rs) is the practical alternative when rewriting is not feasible - embed it on the host page and it runs the SWF via WebAssembly, with good AS1/2 support and growing AS3 support as of 2026.

Frequently asked questions

Can I convert a `.swf` to HTML5 without the original `.fla`?
Not to standalone HTML5 - you can only emulate playback using Ruffle, which keeps the .swf file in place rather than converting it.
Does Ruffle support all SWF content?
ActionScript 1 and 2 content works well; ActionScript 3 support is improving but not complete as of 2026.
What does Adobe Animate produce when publishing to HTML5?
It exports an .html file, a .js file and an assets folder - all three must be deployed together.