Convert screenshots, mockups, Figma designs and screen recordings into clean code with AI
open sourceMITself-hostablefree
Screenshot to Code is Abi Raja's open source app that turns screenshots, mockups, Figma designs and even screen recordings of a website in action into working front-end code with AI models, in HTML with Tailwind or CSS, React or Vue with Tailwind, Bootstrap or Ionic. It uses Gemini, GPT or Claude models with your own API keys (Gemini also reuses the real logos and images from the screenshot), and Replicate for image generation, editing and background removal. You run it yourself as a React/Vite frontend and a FastAPI backend, or use the hosted version at screenshottocode.com.
Problems it solves
- turn a screenshot of a website into HTML and Tailwind
- convert a Figma design into React code with AI
- rebuild a web page from a screen recording
Features
- turns screenshots, mockups and Figma designs into code
- turns screen recordings into a working prototype
- HTML, Tailwind, React, Vue, Bootstrap and Ionic output
- Gemini, GPT and Claude models with your own keys
- self-hosted React and FastAPI app, or the hosted version
Alternatives
The same job
These do what Screenshot to Code does.
- Framelink MCP for Figma Open source MCP server that gives coding agents simplified Figma layout and style data to implement designs
- draw-a-ui Demo app that turns a wireframe you draw on a tldraw canvas into an HTML page with GPT-4 Vision
