---
title: "Web2Code: A Large-scale Webpage-to-Code Dataset and Evaluation Framework for Multimodal LLMs"
url: https://awesomerea.org/papers/paper-web2code/
updated: 2026-10-17
type: paper
---

# Web2Code: A Large-scale Webpage-to-Code Dataset and Evaluation Framework for Multimodal LLMs

> Studies screenshot-to-HTML reconstruction through instruction tuning and two evaluation benchmarks. Web2Code combines generated webpages, refined WebSight and pix2code image/code pairs, and WebSRC-derived question answering. Models produce HTML from a webpage image and instruction; rendered output is compared visually, while a separate benchmark measures screenshot understanding.

- Authors: Sukmin Yun; Haokun Lin; Rusiru Thushara; Mohammad Qazim Bhat; Yongxin Wang; Zutao Jiang; Mingkai Deng; Jinhong Wang; Tianhua Tao; Junbo Li; Haonan Li; Preslav Nakov; Timothy Baldwin; Zhengzhong Liu; Eric P. Xing; Xiaodan Liang; Zhiqiang Shen
- Venue: NeurIPS 2024 Datasets and Benchmarks
- Status: Conference paper
- Publication / posting date: 2024 (exact date not verified)
- Date source: The official NeurIPS proceedings and publisher-deposited Crossref metadata identify publication year 2024; Crossref provides no finer publication date. The first arXiv submission date is recorded separately.
- First arXiv submission: June 28, 2024
- arXiv: 2406.20098
- Read in a terminal: `hf papers read 2406.20098`
- Reviewed arXiv version: v2
- DOI: 10.52202/079017-3560
- Sources reviewed: 2026-10-17
- Added to the catalog: 2026-10-17
- Original paper: <https://proceedings.nips.cc/paper_files/paper/2024/hash/cb66be286795d71f89367d596bf78ea7-Abstract-Datasets_and_Benchmarks_Track.html>
- PDF: <https://proceedings.neurips.cc/paper_files/paper/2024/file/cb66be286795d71f89367d596bf78ea7-Paper-Datasets_and_Benchmarks_Track.pdf>
- Code: <https://github.com/MBZUAI-LLM/web2code>
- Project: <https://mbzuai-llm.github.io/webpage2code/>
- BibTeX: <https://awesomerea.org/papers/citations/paper-web2code.bib>
- Catalog page: <https://awesomerea.org/papers/paper-web2code/>
- Record JSON: <https://awesomerea.org/papers/paper-web2code/record.json>
- Chinese version: [简体中文](https://awesomerea.org/zh/papers/paper-web2code/index.md)

## Scope and limitations

Evaluation uses 1,198 screenshots and 5,990 yes/no questions. WCGB grades rendered images with GPT-4V; its User Interface and Interactivity category measures element appearance, not executed click paths, persistent state or backend behavior. Synthetic and refined examples leave coverage of arbitrary real web applications, original-source equivalence and code quality unverified. The paper reports contact-information issues in 2.7% of a 1,000-item privacy sample, so a blanket claim that the data is free of such information is unsupported.

## Why it fits this collection

A foundational visual reconstruction dataset and evaluation method, useful for distinguishing screenshot fidelity from the behavioral guarantees of later website-reconstruction benchmarks.

## Publication and review notes

Published in NeurIPS volume 37, pages 112134–112157; full author names follow the proceedings PDF. The repository still cites the preprint; reviewed arXiv v2 is dated 2024-11-17. The LLaVA-based training subtree carries Apache-2.0. Dataset licensing is inconsistent: the GitHub README and dataset-card frontmatter say MIT, while the same card’s body says CC BY 4.0 with research-only/non-commercial wording. The training metadata requires Python >=3.8 and pins PyTorch 2.0.1; evaluation needs browser rendering and an external vision-model API.

## BibTeX

```bibtex
@inproceedings{paper-web2code,
  title = {{Web2Code: A Large-scale Webpage-to-Code Dataset and Evaluation Framework for Multimodal LLMs}},
  author = {{Sukmin Yun} and {Haokun Lin} and {Rusiru Thushara} and {Mohammad Qazim Bhat} and {Yongxin Wang} and {Zutao Jiang} and {Mingkai Deng} and {Jinhong Wang} and {Tianhua Tao} and {Junbo Li} and {Haonan Li} and {Preslav Nakov} and {Timothy Baldwin} and {Zhengzhong Liu} and {Eric P. Xing} and {Xiaodan Liang} and {Zhiqiang Shen}},
  year = {2024},
  url = {https://proceedings.nips.cc/paper_files/paper/2024/hash/cb66be286795d71f89367d596bf78ea7-Abstract-Datasets_and_Benchmarks_Track.html},
  booktitle = {Advances in Neural Information Processing Systems},
  volume = {37},
  pages = {112134--112157},
  doi = {10.52202/079017-3560},
  eprint = {2406.20098},
  archivePrefix = {arXiv}
}
```

## Primary sources

1. <https://proceedings.nips.cc/paper_files/paper/2024/hash/cb66be286795d71f89367d596bf78ea7-Abstract-Datasets_and_Benchmarks_Track.html>
2. <https://proceedings.neurips.cc/paper_files/paper/2024/file/cb66be286795d71f89367d596bf78ea7-Paper-Datasets_and_Benchmarks_Track.pdf>
3. <https://arxiv.org/abs/2406.20098v2>
4. <https://arxiv.org/html/2406.20098v2>
5. <https://api.crossref.org/works/10.52202/079017-3560>
6. <https://github.com/MBZUAI-LLM/web2code/blob/48c356a97dd6199f29a9710fdd2b4b2689b5e361/README.md>
7. <https://github.com/MBZUAI-LLM/web2code/blob/48c356a97dd6199f29a9710fdd2b4b2689b5e361/web2code/README.md>
8. <https://github.com/MBZUAI-LLM/web2code/blob/48c356a97dd6199f29a9710fdd2b4b2689b5e361/web2code/pyproject.toml>
9. <https://github.com/MBZUAI-LLM/web2code/blob/48c356a97dd6199f29a9710fdd2b4b2689b5e361/web2code/LICENSE>
10. <https://github.com/MBZUAI-LLM/web2code/blob/48c356a97dd6199f29a9710fdd2b4b2689b5e361/code_generation/README.md>
11. <https://github.com/MBZUAI-LLM/web2code/blob/48c356a97dd6199f29a9710fdd2b4b2689b5e361/code_generation/gpt4_vision_evaluation.py>
12. <https://github.com/MBZUAI-LLM/web2code/blob/48c356a97dd6199f29a9710fdd2b4b2689b5e361/webpage_understanding/README.md>
13. <https://huggingface.co/datasets/MBZUAI/Web2Code/blob/21e587b4509b946e56732fe8c621b17bad631e6b/README.md>

## About this entry

Reviewed against the paper and its primary sources. Cite the original authors using the linked paper or BibTeX.
Original editorial content: MIT. Linked projects, papers and assets retain their own rights and licenses.
