Is there a program that can convert HTML, CSS and JavaScript into an exe?
A similar question was asked on StackOverflow: How can you convert html css and javascript into a exe?
Software Recommendations Stack Exchange is a question and answer site for people seeking specific software recommendations. It only takes a minute to sign up.
Sign up to join this communityIs there a program that can convert HTML, CSS and JavaScript into an exe?
A similar question was asked on StackOverflow: How can you convert html css and javascript into a exe?
While the (previously) accepted answer was correct, in the intervening years the industry has gone ahead by leaps and bounds... Two very good open-source and extremely actively developed options are
Yes there is a program HTML Compiler that allows you to convert an entire HTML application (using CSS, JavaScript, Images and more) into an standalone Windows application.
There is also ExeOutput for PHP that lets you create applications in native format for Windows with PHP, JavaScript and HTML. Convert PHP scripts, websites, JavaScript, HTML, databases into stand-alone apps for Windows (single EXE files) that do not require a Web server nor PHP distribution.
I am not taking exe literaly, but you can setup a desktop application with node-webkit which will basicaly run your webapp localy in a webkit browser. see http://strongloop.com/strongblog/creating-desktop-applications-with-node-webkit/
UPDATE - I just finished a freeware solution for this; check out Scriptonit, I think it's closest to what you need. But I'm surely biased so let's see all the others.
If you need something to present you a window environment and a webserver emulation, choose ZZEE or ExeOutput, these are decent tools, maybe ZZEE is a bit outdated regarding the PHP version. So for "HTML, CSS and Javascript", the answer is clearly something like this.
If you want (something-like-)javascript to be compiled to a standalone EXE, give a chance to JSC, it's there in your Windows, you just probably never met before. JSC gives you extremely small executables (because of the .NET already built into Windows itself) and they have full power of .NET so you can do pretty much anything you want. Flipside: apart from the syntax being familiar, not a lot will remind you of Javascript, you have to learn a lot of new practices to get along.
If you can live with a dependency such as Chrome, you can do a nasty but working solution: RAR can create a self-extracting EXE for you and run a command after extraction (!!), so you can pack up a little micro-universe of HTML/CSS/JS files; then you can call Chrome with "--app=something.html" that will give you a plain window with a browser environment and your HTML file in it. I know this is not a compiler; however, it's a way to create an EXE that is self-contained and gives the user a web-liek experience in an application-like window. Sure, Javascript will be a bit limited because you're running in a local file, not a proper website, but it's not that painful. One lovely thing about this technique is that Chrome will remember the position and size of your window so it will pretty much feel like an application.