Online Notepad
Start typing right away: your text is saved locally in the browser, with live counts for words, characters and lines, and options to copy or download as txt.
Jotting down a line of text, pasting a log excerpt or drafting something short is often slower in a dedicated notes app than in a browser tab. This notepad is ready the moment it opens, saves what is typed into local storage, survives a refresh and a reopened tab, and asks for no account while leaving no record on any server.
Two boundaries matter. The text lives in this browser's local storage, so switching computer or browser, or clearing browsing data, loses it; in private browsing it disappears the moment the window closes. And it is a single scratchpad by design rather than a long-term note store — anything important should be exported or copied into a proper document.
Did this tool solve your problem?
Submitting sends the tool name, your input and the current result to the server. Please do not include ID numbers, phone numbers or other private data.
AI assistant It answers using your current input and result
Asking again sends your current input and result to the server once more. Please do not include private data.
How to use
- Open the page and start typing; there is nothing to set up.
- Watch the live counts of characters, lines and estimated reading time.
- Copy the whole text, or download it as a txt file.
- Remember it is stored in this browser only, and is gone after clearing site data.
How it works
Where the content is stored
Type or paste into the box; about 0.3 seconds after you stop, content auto-saves to this browser, with "auto-saved locally" shown at the top right. Nothing passes through a server, and the content survives refreshes and reopening.
How the word count works
Word count merges Chinese "characters" and English "words": each Chinese character counts 1, each consecutive run of letters or digits counts as 1 word — so mixed text doesn't collapse whole English sentences into one unit. Character count is the true length by Unicode code points.
Exporting your content
"Copy all" puts the content on the clipboard; "Download txt" exports a UTF-8 plain-text file with no mojibake for Chinese. The file name is fixed notepad.txt — rename after downloading.
When it's the wrong tool
Because content lives only in this browser, it's invisible from other devices or browsers and unfit for important material. Clearing browser data, incognito mode or switching devices erases it — export anything you care about promptly.
Code example
JavaScript A minimal local autosave
// Key point: debounce the write so localStorage is not touched on every keystroke
const KEY = 'my-notepad';
const el = document.querySelector('#editor');
el.value = localStorage.getItem(KEY) || '';
let timer = null;
el.addEventListener('input', () => {
clearTimeout(timer);
timer = setTimeout(() => {
localStorage.setItem(KEY, el.value); // skip identical values to avoid pointless writes
}, 300);
});
Shell Archiving the exported text by date
# Click "download txt" in the browser, then archive the file by date
mkdir -p ~/notes
cp ~/Downloads/notepad.txt "$HOME/notes/notepad-$(date +%Y%m%d).txt"
# Check the most recent backups
ls -lt ~/notes | head -5
# Note: local storage can be lost when browser data is cleared — back up anything important
FAQ
Where is my content stored? Can it be lost?
In this browser's localStorage, tied to no account, with no cloud sync. Normal use never loses it — but clearing browser data, uninstalling the browser, incognito mode or switching devices all erase it. Export important content with "Download txt" as you go.
Will I see my notes from another computer?
No. There's no account system and no cloud sync — content lives only in the device and browser that wrote it. To move between machines, download the txt and carry it over, or use a notes app with sync.
What happens to text written in incognito mode?
Closing an incognito window clears all of that window's local storage, so the content is gone at close and never appears in normal windows. Likewise, normal-window content is invisible in incognito — the two are fully isolated.
Is my content uploaded to a server?
No. Saving happens locally in the browser; the page sends text to no endpoint — the server only delivers the page files. For sensitive notes on a work computer, open DevTools' Network panel and confirm no requests are made.
Why doesn't the word count match my manual count?
The gap usually comes from English and punctuation: "words" counts Chinese per character and each English word as one, ignoring spaces, newlines and punctuation; "characters" includes them all. Mixed-language, punctuation-heavy text naturally shows a large difference between the two numbers.
Can I keep multiple notes?
This tool holds a single note — a scratchpad. For more, separate sections with divider lines, or open multiple browser windows — though within the same browser they share the same storage, so it's still one note.
Why do line count and paragraph count differ?
Lines count non-empty lines only; paragraphs split on consecutive blank lines, so adjacent lines without a blank between them form one paragraph. This matches common text editors' conventions.
Will very long text lag?
No. Statistics run locally after each input — even tens of thousands of characters stay in milliseconds; auto-save debounces 0.3 seconds so storage isn't hit per keystroke. The real limit is localStorage's roughly 5 MB cap — export very long text as txt instead.