Write, run, preview.

Pick a language to edit, or read the guide.

H

HTML Code Preview

Structure your markup

C

CSS Code Preview

Style your page

J

JavaScript Code Preview

Add interactivity

?

User Guide

How CodePad works

index.html
← Editor
⟳ Refresh
style.css
← Editor
⟳ Refresh

Card Title

This is a sample card with custom CSS styling.

Badge Label

Heading 2

Body text with your custom styles.

script.js
← Editor
⟳ Refresh

User guide

HTML Editor ⌄
Write HTML markup to structure your page. Your code runs in a sandboxed preview showing the rendered output.
CSS Editor ⌄
Write CSS to style elements. The preview displays a showcase of buttons, cards, and typography to see your styles live.
JavaScript Editor ⌄
Write JavaScript to add logic. The preview shows a real-time console with console.log, errors, and execution output.
Auto-save ⌄
Each language saves automatically as you type, so your code is still there next time you visit CodePad.
Running code ⌄
Tap the "Run Code ⚡" button in the editor header to execute your code and jump to the preview. Use Refresh to re-run without losing your editor content.