WebLab

WebLab: an Online HTML, CSS and JavaScript Editor with a Minifier

Write code with a live page beside it, then make it smaller or easier to read

Guide reviewed 11 November 2026 by Milan Salvi. How we write and correct guides.

Open WebLab โ†’
WebLab's live editor with the starter page: the HTML box with a card and a button on the left, and on the right the page itself with its heading and a button that counts clicks, with the console underneath

Table of Contents

  1. Overview
  2. Key Features
  3. How to Use
  4. How the Tool Works It Out
  5. Safe to Run, Safe to Publish
  6. Frequently Asked Questions
  7. Privacy & Security

Overview

Trying out an idea for a web page should not need a project folder, a local server and a browser window on the side. WebLab gives you three boxes for HTML, CSS and JavaScript and runs the page right beside them, updating as you type. Under the page, a console shows what your code logs and every error with the line it came from, so a mistake is one click away from being fixed.

The page can be shown at the size of a 360 or 412 pixel phone, a tablet, a laptop, a full HD screen or a size of your own, turned sideways or on its own. A loop that never ends is stopped after two seconds instead of freezing the tab, and your work is kept in this browser as projects that you can save as one HTML file or a zip, or share as a link.

When the code is ready, WebLab also makes it ready to publish. Minify removes what browsers do not need from HTML, CSS, JavaScript, JSON and SVG and shows the size before and after, including the gzip size a server would send; Format turns minified or untidy code back into something readable. Many files does the same for a whole website folder or zip at once and gives you the site back as one zip.

Key Features

Live Page

The page runs beside your code and updates as you type; CSS changes show at once without a reload.

Device Sizes

Phones, tablets, a laptop, full HD or your own size, scaled to fit, turned sideways or on its own.

A Real Console

Logs, tables, groups and errors that jump to their line, and JavaScript typed straight into the page.

Loop Protection

A loop that runs longer than two seconds is stopped and named, and a frozen page has a Stop button.

Projects and Templates

Eight starting templates, projects kept in the browser, one-file or zip downloads and share links.

Minify Three Ways

Gentle, Balanced or Smallest for HTML, CSS, JavaScript, JSON and SVG, with gzip sizes and source maps.

Format Nine Languages

HTML, CSS, SCSS, Less, JavaScript, JSX, TypeScript, JSON and Vue, with your indent and line length.

Whole Websites

Drop a folder or a zip of up to 5,000 files and get it back minified or formatted, folders kept.

How to Use

WebLab's Minify part with the example stylesheet: the code on the left, the minified result on the right, and below them the size before and after, the gzip size and a list of what was changed
The Minify part with the example stylesheet (screenshot of the tool on 11 November 2026).
  1. Write or open your code - Type into the HTML, CSS and JS boxes, start from a template, or open files, a folder or a zip.
  2. Watch the page - It updates beside the code; pick a phone, tablet or laptop size above it.
  3. Fix what the console shows - Click an error's line to jump to it, and type JavaScript at the bottom to try things in the page.
  4. Keep or share it - Your project is kept once you change it; Save as gives a file or a zip, Share a link.
  5. Minify or format - Paste or open code in Minify or Format, choose the level or indent, and copy or download the result.
  6. Do a whole site - In Many files, drop a folder or zip and download everything as one zip.

How the Tool Works It Out

Safe to Run, Safe to Publish

Code you paste from somewhere else can do anything a web page can do, so WebLab runs your page in a closed-off frame that does not share this site's address. It cannot read this site's storage or cookies, the data other tools keep, or anything outside its own frame. A page that uses localStorage gets a separate one, kept with the project. Files your own code links to, such as a font or a script from another website, load inside that frame only because you wrote the link; the tool itself adds none.

Minified code is for publishing, not for editing. Keep your original files, and use Format when you need to read a minified file again. Smallest is the most compact level, but code made with it may no longer pass a validator; Balanced is the usual choice for a website.

CodeForge, the site's code and data converter, sounds similar: it turns data from one format into another, such as JSON into CSV, XML or YAML, and can give JSON pretty or minified as part of that. WebLab is for web pages: you write and run HTML, CSS and JavaScript, and it minifies or formats them, one file or a whole folder.

Frequently Asked Questions

The questions people ask most are answered on the tool page, just below the tool. The full list of 30 questions, from the live page, the console and endless loops to projects, share links, minifying, formatting and whole websites, is on the WebLab FAQ page, and every part of the tool is explained step by step in the help guide.

Privacy & Security

Your Code Stays on Your Device

This tool has no upload step, no account and no server-side storage. Your code is run, minified and formatted by this browser, and the files and zips are made on your device. Your projects and settings are kept only in this browser on this device, once you change something.

The tool asks no outside service for anything: the code editor, the minifier and the formatter are open-source software stored with the tool. Like every page on ZeroDataUpload, the tool page shows ads through Google AdSense and counts visits with Google Analytics; the Privacy Policy explains both.

Ready to write your page? It's free, private, and runs entirely in your browser.

Open WebLab โ†’

Related

Milan Salvi

Milan Salvi

Founder, Leena Software Solutions

Milan is the founder of ZeroDataUpload and Leena Software Solutions, building privacy-first browser tools that process everything client-side. View all articles ยท About the author.

Last Updated: November 3, 2026