Build a Browser Game in Pure HTML, CSS & JavaScript
A complete, playable browser game in under 200 lines. Copy the code, tweak it live, and make it your own.
1 hands-on guide to write, test and publish HTML.
A complete, playable browser game in under 200 lines. Copy the code, tweak it live, and make it your own.
HTML Display is a free online HTML editor with instant live preview. Write, test and share HTML code directly in your browser: no signup, no installation.
Features include real-time preview, code beautify & minify, import/export, dark mode, auto-save and more. Everything runs locally in your browser: your code never leaves your device.
Built with vanilla HTML, CSS and JavaScript. Fast, private, and free forever.
Last updated: July 2026
By using htmldisplay.com you agree to these terms. If you do not agree, please do not use the service.
The service is provided free of charge, "as is", without warranty of any kind. You may not use it for illegal content or activities.
Code you write stays in your browser. You remain fully responsible for the content you create, test or share.
We are not liable for any damage or data loss resulting from the use of this tool. Always keep a backup of important code.
We may update these terms at any time. Continued use of the site means you accept the updated terms.
Last updated: July 2026
We do not require an account and do not collect personal data. Your code is stored only in your browser's local storage and never sent to our servers.
We use Google Analytics 4 to measure traffic (page views, country, device type, traffic source). Data is aggregated and not used to personally identify you. See our Cookie Policy for details and opt-out options.
Auto-save uses your browser's local storage. You can clear it anytime from your browser settings or the "Clear" button.
Questions about privacy? Email us at [email protected].
Last updated: July 2026
Cookies are small text files stored on your device by your browser. They help websites remember your preferences and understand how the site is used.
Essential (local storage): used to auto-save your code and remember your settings (theme, font, layout). These stay on your device and are never transmitted.
Analytics (Google Analytics 4): we use Google Analytics to understand how visitors use the site (pages viewed, approximate location, device type, traffic source). This data is aggregated and does not personally identify you. Google may set cookies such as _ga and _ga_*, which typically expire after 13 months. Learn more in Google's Privacy Policy, or opt out with the Google Analytics opt-out browser add-on.
Apart from Google Analytics, we do not serve advertising cookies. If external content is embedded in your preview, those sites may set their own cookies.
You can clear or block cookies and local storage anytime in your browser settings. Note that clearing local storage will erase your auto-saved code.
Questions? Email us at [email protected].
Last updated: July 2026
Some links on htmldisplay.com are affiliate links. If you click one of these links and make a purchase, we may earn a commission, at no additional cost to you.
These commissions help us keep this tool free for everyone. We only recommend products and services we believe provide real value to our users.
Affiliate partnerships never influence our content or the way this tool works. Our opinions and recommendations remain our own.
All information and tools on this site are provided "as is" for general informational purposes, without warranty of any kind. We are not responsible for decisions made based on the content of this site.
Questions about this disclaimer? Email us at [email protected].
Feedback, bug report or partnership? We'd love to hear from you.
We usually reply within 24 to 48 hours.
McAfee antivirus helps block malware, risky downloads and unsafe sites. Downloading and installing it is free.
Sponsored. HTML Display is not affiliated with McAfee.