Google Swiffy: SWF to HTML5 quick as a Flash

Google Swiffy has been let loose into the Google Labs - an on the fly conversion tool to make your Flash animations more HTML5 friendly.

Swiffy takes a SWF file and converts it in two phases. Firstly the Swiffy compiler processes the SWF file and generates a JSON file and then a client-side JavaScript runtime loads that JSON file and renders it using HTML, SVG and CSS.

The result is a HTML5 file roughly 10 per cent larger than the original, but crucially - one that is able to be displayed on non-Flash compatible devices, such as the iPhone and iPad.

"Flash was created during the PC era, for PCs and mice," Apple boss Steve Jobs penned in an open letter last year. "New open standards created in the mobile era, such as HTML5, will win on mobile devices. Perhaps Adobe should focus more on creating great HTML5 tools for the future."

And whilst Adobe has made more of a HTML5 effort recently, third party initiatives such as Google Swiffy mean a better mobile web experience for the end-user.

It's not perfect by any stretch of the imagination, with Google stating it is an "early version" (check out the Gallery, and in particular the Chrome advert which is noticeably slower and misses some elements such as fonts) but it's a nice tool for developers to have in their quest for a web that plays nicely on all devices.

It's in the Google Labs now - go check it out.