- Added
package.jsonto generated projects. - You can now specify the major version of Astro.
- You can now configure whether
tsconfig.jsonis included in generated projects.
html2astro
Drag & drop your HTML. Instantly convert to an Astro project.
Last Update
Upload Your HTML
Drag & drop your ZIP file here
or click to browse
Options
output:
/pages/slug/index.astroFeatures
- Skip 0 KB files
- Auto-distribute
<head>metadata: common in layout, per-page in slot - Copy assets into
public/assets/{images,js,css,misc} - Extract
<header>/<footer>intoHeader.astro/Footer.astro
Example Transformation
Input:
/my-site ├─ index.html ├─ profile.html └─ src/ ├─ style.css ├─ common.css ├─ main.js ├─ image.png ├─ logo.svg └─ some-text.txt
Output:
/astro-project
├─ public/
│ └─ assets/
│ ├─ css/
│ │ ├─ style.css
│ │ └─ common.css
│ ├─ js/
│ │ └─ main.js
│ ├─ images/
│ │ ├─ image.png
│ │ └─ logo.svg
│ └─ misc/
│ └─ some-text.txt
└─ src/
├─ components/
│ ├─ Header.astro
│ └─ Footer.astro
├─ layouts/
│ └─ BaseLayout.astro
└─ pages/
├─ index.astro
└─ profile.astro