Online Notepad
Write notes that stay in your browser as you type, open and save text files as they were, and find and replace. Nothing is uploaded.
Opening your notes…
Ctrl+S saves, Ctrl+O opens, Ctrl+F finds, Ctrl+H replaces, Ctrl+G goes to a line. Tab types a tab: Shift+Tab, or Esc then Tab, moves on. Drop a file here to open it.
Where your notes are kept, and how a file comes back
Each note is kept in this browser's own storage on this device, a moment after you stop typing, and never sent anywhere: there is no account and no server copy. Notes stay until you delete them or clear this site's data, and another browser or device does not see them, so save a note you need elsewhere as a file. Tabs of this page show the same notes, and when a note is changed in two tabs at once neither text is lost: the note takes the other tab's, and this tab's goes on in a new note of its own.
A text file you open keeps its format: its encoding, a byte order mark if it had one, and its line breaks, Windows' CRLF or the LF of macOS and Linux. Opened and saved unchanged, it is written back byte for byte. A file that is not valid UTF-8 is read as Western (Windows-1252), Notepad's "ANSI" on English systems, and can be read again in another code page if it shows the wrong letters. A character the file's encoding has no byte for, such as an emoji in a Windows-1252 file, is named before saving rather than written as a question mark. In Chrome and Edge, Save writes to the file you opened; elsewhere it downloads a copy.
Spell check starts off: in Chrome with enhanced spell check turned on, the text of a field being checked is sent to Google, and Edge's Microsoft Editor works the same way, so it is yours to turn on.
What this tool is used for
- Writing quick notes, lists and drafts that are still there after the tab or the browser is closed.
- Editing a config, CSV or log file on a computer where you cannot install an editor, and saving it back with its own line breaks.
- Fixing a file from an old Windows program saved in ANSI without turning it into UTF-8 unless a character needs it.
- Cleaning up text with find and replace: match case, whole words, or a regular expression with $1 in the replacement.
- Keeping an eye on the words and characters of a draft as you write.
- Moving every note to another computer as one ZIP of text files.
How it works in practice
A worked example
Someone opens menu.txt, a price list an old Windows program saved as ANSI with Windows line breaks, adds a line with an emoji, and saves it.
menu.txt, 40 bytes, in Windows-1252 with CRLF line breaks: Café au lait – 2 € Crème brûlée – 4 € The line added after opening it: Party 🎉 – 10 €
On opening: menu.txt is not valid UTF-8, so it was read as Western (Windows-1252). Status bar: Western (Windows-1252) · Windows (CRLF) Saved before the edit: the same 40 bytes On saving after the edit: Western (Windows-1252) has no byte for “🎉” (U+1F389), so the note cannot be saved in it as it is. [Save in UTF-8] Saved in UTF-8: 75 bytes, still with CRLF Status bar: Ln 4, Col 1 · 9 words · 53 characters · 4 lines
The file holds the bytes E9 for é, 96 for the dash and 80 for the euro sign, which can start no character in UTF-8, so the file is not UTF-8 and is read as Windows-1252, where each is one byte. Its line breaks are CR LF, so the page saves them as CR LF, and saved before any edit the file is the same 40 bytes. The emoji has no byte in Windows-1252, so the page stops and names it rather than writing a question mark. In UTF-8 é, è and û take 2 bytes each, the dash and the euro sign 3 each and the emoji 4, so the three lines take 75 bytes. The counts are the site's word counter's: the dashes, euro signs and the emoji are not words.
The edge case that catches people
Read as UTF-8 instead, the same 40 bytes would show 8 replacement characters, one for each é, è, û, dash and euro sign, and saving would write each as the 3 bytes of the replacement character, losing the letters for good. That is why the page never reads a file as UTF-8 unless it is valid UTF-8, and why a file read as a code page can be read again in another before it is edited.
When not to use this tool
It is not a backup or a way to sync: notes live in one browser on one device. It opens text files of up to 20 MB, though past a few megabytes each key typed takes the browser a moment to show, and refuses anything holding a zero byte, which no text file has, such as a Word document or a PDF. For code with highlighting, or for several people writing in one document, use a code editor or a shared document instead.
Frequently Asked Questions
- Where are my notes saved?
- In this browser's own storage on this device, a moment after you stop typing. Nothing is uploaded: there is no account and no copy on a server. That also means another browser or another device does not see them, so save a note as a file, or download them all, to take them elsewhere.
- Will my notes still be there when I come back?
- Yes, in the same browser, until you delete them or clear this site's data. A private or incognito window forgets everything when it closes, and clearing your browsing data with site data ticked deletes the notes too, so download what you need first. Download all saves every note as a text file in one ZIP.
- Can I open a .txt file and save it back?
- Yes. Open, or Ctrl+O, reads any text file of up to 20 MB, or drop it on the page. In Chrome and Edge on a computer, Save writes back to the file you opened, after the browser asks you once; in other browsers it downloads a copy. Save as picks a new name.
- Does it keep my file's encoding and line breaks?
- Yes. A file is saved as it was read: UTF-8 with or without a byte order mark, UTF-16, or a Windows code page such as Windows-1252, Notepad's ANSI, with its own line breaks, CRLF from Windows or LF from macOS and Linux. Saved unchanged, it comes back byte for byte. The status bar shows both, and can change them.
- What if my file shows the wrong letters?
- A file that is not valid UTF-8 is read as Western (Windows-1252), the code page of English and Western European Windows. A Greek, Cyrillic or Turkish file from an old program needs its own code page: choose it under Shows the wrong letters? Read it again as, before you edit, and the same bytes are read again.
- What happens to an emoji in an ANSI file?
- Windows-1252 has no byte for an emoji, or for most letters outside Western Europe. Instead of writing such a character as a question mark, as some editors do, the page names each one when you save and offers to save the file in UTF-8, which holds every character.
- Why is spell check off?
- Because spell checking can send your text away. In Chrome with enhanced spell check turned on, text in a field being checked goes to Google, and Edge's Microsoft Editor works the same way. Turn Spell check on if your browser checks spelling on your device or you do not mind.
- Can I use it in two tabs?
- Yes. Every tab shows the same notes and picks up a change made in another a moment later. If one note is changed in two tabs at once, neither text is lost: the note takes the other tab's text, and this tab's goes on in a new note of its own, with no question to answer.
Common errors and gotchas
- Expecting the notes on a phone or in another browser. They are kept in the browser that wrote them; save or download them to move them.
- Clearing browsing data with cookies and site data ticked, or writing in a private window, and losing the notes. Download them first.
- Saving an ANSI file as UTF-8 for a program that only reads ANSI. Keep the encoding the status bar shows unless the page says the text needs UTF-8.
- Editing a Greek or Cyrillic file read as Windows-1252, then saving the wrong letters. Read it again in its code page before you change anything.
- Searching for a dot or a bracket with Regex ticked, where they match more than themselves. Untick Regex to find text as typed.