π Live Demo Β»
A clean, simple, and beginner-friendly online notepad, whiteboard, and code playground built with vanilla HTML, CSS, and JavaScript. It saves notes and drawings locally using localStorage, and now embeds a hosted code runner so you can execute snippets without leaving the page.
- βοΈ Instantly write and edit notes with auto-save functionality
- πΎ Download notes as a text file (.txt)
- π Copy notes to clipboard with one click
- π Adjustable font size for better readability
- ποΈ Clear all notes with confirmation
- β‘ Auto-save with debounce β saves 1 second after you stop typing
- πΏ Persistent storage β notes are saved even after closing the browser
- ποΈ Draw freely with customizable brush colors
- π Adjustable brush size (1-50px)
- βοΈ Eraser tool to remove mistakes
- ποΈ Clear canvas with confirmation
- πΎ Download drawings as PNG images
- π± Touch support for mobile and tablet devices
- πΏ Auto-save canvas β drawings persist across sessions
- π Instant code execution powered by an embedded sandbox
- ποΈ Language selector with Python (default), JavaScript, Java, C/C++, and more
- π Hosted execution environment β no setup or backend required
- π Remembers your last language using localStorage for convenience
- π Tab-based interface to switch between notepad, whiteboard, and code runner
- π± Responsive design β works on desktop, tablet, and mobile
- π¨ Beautiful gradient UI with modern design
- πΎ Local-first β notes and drawings live in your browser; code runs through a hosted sandbox when online
- π Privacy-conscious β nothing is sent anywhere unless you run code
- No account required β just open and start using
- Offline-friendly β notes and sketches work offline; the code runner streams to the sandbox on demand
- Your data stays private β nothing leaves your device unless you execute code
- Lightweight and fast β pure vanilla JavaScript, no frameworks
- Free and open-source β use it, modify it, learn from it
To use the Online Notepad, Whiteboard & Code Runner locally:
git clone https://github.com/rd9437/Online-Notepad-Whiteboard-codeeditor.git
cd Online-Notepad-Whiteboard-codeeditorSimply double-click index.html or open it in your browser:
# On Windows
start index.html
# On Mac
open index.html
# On Linux
xdg-open index.htmlThat's it! No installation, no dependencies, no build process needed. π
.
βββ index.html # Main HTML structure
βββ style.css # All styling and CSS
βββ script.js # JavaScript functionality
βββ README.md # Documentation
- HTML5 β Structure and Canvas API
- CSS3 β Modern styling with gradients and flexbox
- JavaScript (Vanilla) β Pure JS, no frameworks
- localStorage API β Client-side data persistence
- Canvas API β Drawing functionality for whiteboard
- Hosted Sandbox Embed β Cloud-based code execution inside the app
- Type your notes in the text area
- Notes auto-save 1 second after you stop typing
- Access saved notes anytime β even after closing the browser
- Download, copy, or clear your notes as needed
- Select a color and brush size
- Draw on the canvas with mouse or touch
- Canvas auto-saves after each drawing stroke
- Download your artwork as a PNG image
- Pick a language from the dropdown (Python loads by default)
- Type or paste code inside the embedded sandbox IDE
- Press Run to execute code on the cloud infrastructure
- View results right inside the embed; copy or download anything you want to keep
- All data is stored in browser's localStorage
- Notepad content saved as plain text
- Whiteboard saved as base64-encoded PNG image
- Data persists until you clear browser data or manually delete
- The code runner uses the provider's servers; this app does not persist code snippets locally
Q: Do I need an internet connection?
A: Notes and the whiteboard work offline after the first load. The code runner requires an active internet connection to reach the hosted service.
Q: Where is my data stored?
A: Notes and drawings stay in your browser's localStorage. Code you execute is processed on the sandbox provider's servers.
Q: Can I access my notes on another device?
A: No, localStorage is device-specific. For cloud sync, you'd need to add a backend.
Q: What happens if I clear my browser data?
A: Your notes and drawings will be deleted. Download important content first!
Q: Is there a file size limit?
A: localStorage typically allows 5-10MB per domain. This is plenty for notes and drawings.
Q: Can I customize the colors/design?
A: Absolutely! Just edit style.css to your liking.
Q: Does the code runner save my snippets?
A: Sessions are temporary. Copy or download your code/output if you need to keep it.
Edit the gradient colors in style.css:
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);Modify the canvas dimensions in index.html:
<canvas id="whiteboardCanvas" width="1000" height="600"></canvas>Update the timeout in script.js:
notepadSaveTimeout = setTimeout(() => {
saveNotepad();
}, 1000); // Change 1000 to your preferred millisecondsHave questions or suggestions?
Open an issue or reach out via rudransh.tech
Β© 2026 All rights reserved | By Rudransh Das
Made with β€οΈ by Rudransh Das