Co

Convert any screenshot into clean HTML code using GPT Vision (OSS tool)

Hacker News

Convert any screenshot into clean HTML code using GPT Vision (OSS tool)

Hey everyone, I built a simple React/Python app that takes screenshots of websites and converts them to clean HTML/Tailwind code. It uses GPT-4 Vision to generate the code, and DALL-E 3 to create placeholder images. To run it, all you need is an OpenAI key with GPT vision access. I’m quite pleased with how well it works most of the time. Sometimes, the image generations can be hilariously off. See here for a replica of Taylor Swift’s Instagram page: https://streamable.com/70gow1 I initially had a hard time getting it to work on full page screenshots. GPT4 would code up the first couple of sections and then, get lazy and output placeholder comments for the rest of the page. With some prompt engineering, full page screenshots work a whole lot better now. It’s great for landing pages. Lots of ideas of where to go from here! Let me know if you have feedback and you find this useful :)

Share card

Actual performance

358points
90comments
Made the leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Missing: supports, reddit linkedin, podcasting
84%84% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Product HuntOn track for Day 1 leaderboard · Strong signals: openai, using, code · Missing: mac, agents, macos
78%78% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: ide, io · Missing: https docs, excited, just released
67%67% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
TrustMRRLess likely to generate early MRR · Missing: mobile apps, ios, personal
43%43% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
36%36% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
17%17% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Co
Convert any design into HTML code using GPT4 vision65%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Convert any design into HTML code using GPT4 vision

Hacker News2
De
Design2Code – Convert any screenshot to HTML/CSS code using GPT4 Vision62%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Design2Code – Convert any screenshot to HTML/CSS code using GPT4 Vision

Hacker News16
Co
Convert a screenshot to a working Flutter app (OSS tool)47%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Convert a screenshot to a working Flutter app (OSS tool)

Hacker News1
Sc
Screenshot2Code – Generate Code from Screenshots Using GPT-Vision63%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Screenshot2Code – Generate Code from Screenshots Using GPT-Vision

Hacker News1
I
I wrote a simple tool to convert Markdown to HTML65%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

I wrote a simple tool to convert Markdown to HTML

Hacker News11
GP
GPT-3 for vision50%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

GPT-3 for vision

Hacker News4
Sc
Screenshot 2 Text GPT (with vision not OCR)56%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Screenshot 2 Text GPT (with vision not OCR)

Hacker News3
Us
Using Unicode in HTML44%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Using Unicode in HTML

Hacker News2
Xl
Xlrte – OSS Infrastructure from Code Tool65%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Xlrte – OSS Infrastructure from Code Tool

Hacker News2
Co
Convert HTML to HAML in Vim56%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Convert HTML to HAML in Vim

Hacker News1