One .zip file
Upload a single .zip file. html2app rejects .rar, .7z and .tar.gz files, and it rejects loose files such as a lone index.html.
Upload guide
html2app takes one .zip file per upload. The zip must contain an index.html file, and its files must be ready to publish. html2app does not build your project, so zip the output of your build, not the raw project.
Only .zip files are accepted. Other archive formats and loose files are rejected.
my-app.zip
├── index.html ← required, exact name
├── css/
│ └── style.css
├── js/
│ └── app.js
└── images/
└── logo.png
01 The rules
Upload a single .zip file. html2app rejects .rar, .7z and .tar.gz files, and it rejects loose files such as a lone index.html.
The zip must contain a file named index.html in lowercase. Index.html, INDEX.HTML and index.htm are not accepted.
html2app does not run npm, a bundler, a compiler or a transpiler. Upload files that a browser can load right away.
02 Layout
html2app accepts three layouts. Use the root layout unless your project already uses one of the other two.
| Layout | What the zip contains | Notes |
|---|---|---|
| Root (recommended) | index.html at the top level, with css/, js/ and images/ folders beside it | Works for every project. |
| Single folder | One folder at the top level that directly contains index.html, such as my-app/index.html | The folder name may use only English letters, numbers, hyphens and underscores. |
| Cordova | www/index.html at the top level | For projects that already keep their files in www/. |
Not accepted: index.html two or more folder levels deep, such as my-app/dist/index.html. Also not accepted: several folders at the top level, such as src/ and dist/, when index.html is not at the top level.
Use relative links such as css/style.css, not /css/style.css. Relative links keep working wherever the app loads.
03 Ready-to-publish files
html2app stores the zip, checks its structure and packages your files into a native app. The pipeline does not transpile, compile or otherwise modify your files. Each file you upload is the file that gets published.
Run the build first. It writes the browser-ready files to an output folder, often dist/ or build/. Zip the contents of that folder.
The structure check does not run your app. Before you zip, serve the output folder with a local web server, for example
python3 -m http.server run inside that folder. Open http://localhost:8000 in a browser and confirm that every
page and file loads.
04 Create the ZIP
Select the files inside the folder, not the folder itself. This puts index.html at the top level of the zip.
cd dist
zip -r ../my-app.zip .
The dot at the end zips the contents of dist/, so index.html lands at the top level. Replace dist with the name of your output folder.
Zipping the output folder itself also works when that folder directly contains index.html. The zip then has one folder level, such as dist/index.html, which matches the single folder layout. The root layout is simpler.
05 Check and upload
html2app ignores junk files such as __MACOSX, .DS_Store, Thumbs.db and desktop.ini, so you do not need to remove them.
06 Errors
Find the message that html2app shows, then apply the fix in the same row.
| What html2app says | Cause | Fix |
|---|---|---|
| The selected file does not end in .zip. | The file is another archive format, or a loose file. | Create a .zip file and select it. |
| Your ZIP must contain an index.html file at the root level, inside a www/ folder, or inside a single folder. | No index.html is in an accepted place. | Put index.html at the top level, or use one of the layouts in section 02. |
| The ZIP contains index.html, but not at the root level, inside a www/ folder, or directly inside a single folder. | index.html is nested deeper, for example my-app/dist/index.html. | Zip the folder that directly contains index.html. |
| The name must be exactly index.html in lowercase. | The file is named Index.html, INDEX.HTML or index.htm. | Rename the file to index.html, then zip again. |
| Your ZIP contains multiple folders at the root level. | Several folders sit at the top level, and index.html is not at the top level. | Move index.html to the top level, or keep only the output folder. Remove source folders such as src/. |
| The folder containing your index.html file must use only English letters, numbers, hyphens, and underscores. | The single folder name has spaces, accents or other characters. | Rename the folder, then zip again. |
| One or more file names in your ZIP are too long. | A file name has more than 200 characters, or more than 240 bytes in UTF-8. Emoji and accented letters use more bytes. | Shorten the file names. |
| One or more file names contain non-English characters, but the ZIP does not store them as UTF-8. | The zip was created without UTF-8 file names. | Create the zip with UTF-8 file names, or rename the files to English letters. |
| The ZIP archive is damaged or incomplete. | The download or copy was cut short, or the zip is corrupted. | Create the zip again. |
| The browser could not read this file. | The file moved or changed after you selected it, or it is a cloud placeholder that is not downloaded yet. | Make sure the file is fully downloaded to this computer, then select it again. |
| The ZIP file is empty or contains no valid files. | The zip holds no files, or only junk files such as __MACOSX. | Zip the output folder with its files inside. |
07 FAQ
No. Zip the folder first. The upload accepts .zip files only.
No. Create a .zip file.
No. Run the build on your computer, then zip the output folder.
Only in one of the two folder layouts: a single folder that directly contains index.html, or www/. Other positions are rejected.
No. The check looks at the zip structure and file names. It does not run the app, so test it in a browser before you upload.
No. The pipeline does not transpile, compile or otherwise modify your files.