This online notepad uses the browser's localStorage API to persist your text locally on your device. Every 500 milliseconds after you stop typing, your content is automatically saved. localStorage is a key-value store built into every modern browser that can hold 5-10 MB of text data.
Line numbers are generated dynamically by counting newline characters in your text and rendering them in a separate column. The line numbers scroll in sync with your text using a synchronized scroll event handler.
Dark mode works by toggling a CSS class on the body element, which redefines all the color variables using CSS custom properties. Your dark mode preference and font size are also saved in localStorage so they persist between sessions.
Speed up your writing with these built-in keyboard shortcuts.
| Shortcut | Action |
|---|---|
| Ctrl + S | Save (auto-saves anyway, but forces immediate save) |
| Ctrl + Z | Undo last action |
| Ctrl + Y | Redo last undone action |
| Ctrl + A | Select all text |
| Tab | Insert a tab character (useful for code indentation) |
| Ctrl + F | Find text within the editor (browser built-in) |
How this online notepad compares to traditional desktop text editors.
| Feature | Online Notepad | Desktop Notepad |
|---|---|---|
| Installation | None required, works in browser | Must download and install |
| Cross-device access | Same browser/device only | Tied to one machine |
| Offline use | Yes, after page loads | Yes, fully offline |
| Auto-save | Built-in (localStorage) | Manual or varies by editor |
| Privacy | Data stays on your device, never sent to a server | Data stays local |
| Dark mode | Toggle with one click, preference saved | Depends on editor |
| Collaboration | Not supported | Not supported (use Google Docs for this) |
Ideas for how to use this online notepad effectively.
| Use Case | Why This Notepad Works |
|---|---|
| Meeting notes | Loads instantly, auto-saves, no account needed. Download as .txt when done. |
| Code snippets | Monospace font, Tab key support, line numbers for easy reference. |
| To-do lists | Write tasks, check them off, clear when done. Text persists between sessions. |
| Journaling | Distraction-free writing with dark mode for comfortable night writing. |
| Text cleaning | Paste formatted text to strip all formatting and get clean plain text. |
| Drafting emails | Write in a clean space without distractions, then copy into your email client. |
Your text is saved in your browser's localStorage. This means it persists even if you close the tab or browser, but it is only available on the same device and browser. It is never sent to any server.
If you use the Clear button, the text is permanently removed from localStorage and cannot be recovered. Always download your text as a .txt file before clearing if you want to keep a backup.
No. Dark mode only changes the visual appearance of the editor. The downloaded .txt file contains plain text with no formatting, so it looks the same regardless of which mode you were using.
The practical limit depends on your browser's localStorage capacity, which is typically 5-10 MB. This translates to roughly 2.5-5 million characters, or about 500,000 to 1 million words. More than enough for most writing tasks.
Yes, the notepad supports Tab key input and uses a monospace font, making it suitable for writing and editing code. However, it does not have syntax highlighting or code-specific features like a dedicated code editor.
For quick notes, yes. This notepad loads instantly, requires no login, works offline, and auto-saves locally. Google Docs is better for collaborative editing, rich formatting, and cloud storage. Use this when you need speed and simplicity.
Explore our collection of free online tools