4HTML StudioHTML Playground
Auto refresh on

HTML Playground — Tools & Features

Work with HTML, CSS and JavaScript in separate tabs, preview your changes and download a combined document. Select a file in the Explorer or use the editor tabs. Your workspace is stored locally in your browser.

Project management

Open file

Open an HTML, CSS, JavaScript or text file. When opening HTML, choose whether to retain the existing CSS and JavaScript.

Download HTML

Download the combined HTML document, including CSS and JavaScript.

New project

Start an empty project. This clears the current workspace.

Load example

Load the built-in example project.

Code editing

↶ Undo

Undo the last change in the active file.

↷ Redo

Redo a previously undone change in the active file.

Format code

Format the active file for readability.

Copy code

Copy the active file to the clipboard.

Validate code

Check code and show detected problems.

Clean HTML

Remove unwanted HTML markup while preserving protected content.

Quality review

Review code quality and receive suggestions.

Autocomplete

Enable automatic code suggestions. Ctrl+Space requests suggestions manually.

Split & Merge

Split HTML / CSS / JS

Extract embedded CSS and JavaScript into separate tabs while retaining their original positions and attributes.

Merge

Combine the current HTML, CSS and JavaScript, preserving edits.

Undo Split

Restore the project snapshot from before splitting. Later edits may be lost.

Preview & inspection

Live Preview

Display the rendered page in an isolated preview frame.

Visual Editor

Edit supported text directly in the preview. HTML updates automatically; scripts are paused.

⌖ Inspect

Highlight an element and locate its corresponding HTML source. Click to lock the selection.

Refresh the preview manually.

Open the larger browser preview.

Auto preview

Refresh the preview automatically as code changes.

Close ×

Close the expanded preview.

Problems & console

Problems

Show detected code problems.

Console

View runtime messages and JavaScript errors.

Clear

Clear displayed diagnostic messages.

Self-check

Run built-in editor capability checks.

AI assistant

AI tools

Open or hide the AI assistant.

Explain

Explain selected code or the active file.

Fix Errors

Ask AI to analyze errors and propose corrections.

Improve

Request improvements to selected code or the active file.

Generate

Generate code using optional instructions.

Cancel

Cancel the current AI request in the interface.

⚙

Configure the AI connection endpoint.

Compare

Compare the proposed revision with the original code.

Apply

Apply the proposed code revision to the workspace.

Discard

Discard the proposed revision without applying it.

Restore original

Restore the original code after an AI revision.

Built-in AI coding assistant — free to use, no registration, no personal API key required.

Run — Browser Preview
Split report