Online Notepad

Filename:
Font:
Size:
Courier New - 16px
Right-click on underlined words for suggestions
`); printWindow.document.close(); printWindow.focus(); });// Clear button document.getElementById('clearBtn').addEventListener('click', function() { if (notepadText.value.trim() !== '' && confirm('Clear all text? This cannot be undone.')) { notepadText.value = ''; localStorage.setItem(CONTENT_KEY, ''); updateCounts(); showSaveStatus('All text cleared'); notepadText.focus(); } });// Auto-save on typing let saveTimeout; notepadText.addEventListener('input', function() { updateCounts(); if (saveTimeout) clearTimeout(saveTimeout); saveTimeout = setTimeout(function() { localStorage.setItem(CONTENT_KEY, notepadText.value); saveStatus.textContent = 'Auto-saved ✓'; saveStatus.style.background = '#f0fff4'; saveStatus.style.borderColor = '#c6f6d5'; saveStatus.style.color = '#38a169'; }, 800); });// Save filename when changed filenameInput.addEventListener('input', function() { const filename = this.value.trim(); localStorage.setItem(FILENAME_KEY, filename); });filenameInput.addEventListener('change', function() { const filename = this.value.trim(); if (filename && !filename.endsWith('.txt')) { this.value = filename + '.txt'; localStorage.setItem(FILENAME_KEY, this.value); } });// Keyboard shortcuts document.addEventListener('keydown', function(event) { if ((event.ctrlKey || event.metaKey) && event.key === 's') { event.preventDefault(); document.getElementById('saveBtn').click(); } if ((event.ctrlKey || event.metaKey) && event.key === 'n') { event.preventDefault(); document.getElementById('newBtn').click(); } if ((event.ctrlKey || event.metaKey) && event.key === 'o') { event.preventDefault(); document.getElementById('openBtn').click(); } if ((event.ctrlKey || event.metaKey) && event.key === 'p') { event.preventDefault(); document.getElementById('printBtn').click(); } if (event.key === 'F7') { event.preventDefault(); spellCheckBtn.click(); } });// Focus textarea on load notepadText.focus();// Auto-resize textarea on mobile function resizeTextarea() { if (window.innerWidth < 768) { notepadText.style.minHeight = Math.max(250, window.innerHeight * 0.5) + 'px'; } else { notepadText.style.minHeight = '300px'; } }resizeTextarea(); window.addEventListener('resize', resizeTextarea);// Handle mobile virtual keyboard if ('visualViewport' in window) { const viewport = window.visualViewport; viewport.addEventListener('resize', function() { notepadText.scrollIntoView({ behavior: 'smooth', block: 'nearest' }); }); }// Welcome message if (!localStorage.getItem('welcomeShown')) { setTimeout(() => { showSaveStatus('Welcome to Online Notepad! Start typing...'); localStorage.setItem('welcomeShown', 'true'); }, 1000); }

Share:

Facebook
X
LinkedIn
Email
Reddit

Rate this Tool

User Ratings:

0.0
0.0 out of 5 stars (based on 0 reviews)
Excellent0%
Very good0%
Average0%
Poor0%
Terrible0%

About This Online Notepad

What is this Online Notepad?
This is a free, web-based text editor that works directly in your browser. It’s designed for simplicity and speed, allowing you to quickly jot down notes, edit text, or write documents without any software installation.

Key Features:

  • No Registration Required: Start typing immediately

  • Auto-Save: Your work is saved automatically as you type

  • File Management: Save, open, and print text files

  • Privacy First: All data stays in your browser

  • Mobile Friendly: Works perfectly on phones, tablets, and computers

  • Word & Character Count: Track your writing length

  • Keyboard Shortcuts: Quick save, print, and navigation

Perfect For:

  • Quick notes and reminders

  • Drafting emails or documents

  • Code snippets and technical notes

  • Meeting minutes

  • Brainstorming sessions

  • Todo lists

  • Temporary text editing

Why Use Our Online Notepad?
Unlike complex word processors, this tool focuses on what matters most: getting your thoughts down quickly and easily. With its clean interface and essential features, it’s the perfect digital scratch pad for everyday use.

How to Use the Online Notepad

Getting Started

Open the Notepad: Simply load the page and start typing immediately

Set a Filename: Enter your desired filename in the top field (default: note.txt)

Begin Typing: The text area is ready for your content

 

Basic Functions

Type: Click in the text area and start writing

Edit: Use standard text editing (copy, paste, cut)

Auto-Save: Your text is saved automatically every few seconds

 

File Operations

📄 New Note

Click the “New” button (green)

Confirmation required if there’s existing unsaved text

Resets text area and sets default filename

📂 Open File

Click “Open” (blue)

Select any .txt, .md, .html, .js, .css, or .json file

File opens directly in the editor

Filename updates to match opened file

💾 Save File

Click “Save” (orange)

Uses filename from the input field

Automatically adds .txt extension if missing

Downloads file to your device

🖨️ Print

Click “Print” (purple)

Opens print-friendly version

Includes filename and date

Use browser’s print dialog

🗑️ Clear Text

Click “Clear” (red)

Confirmation required

Only clears text (keeps filename)

 
Keyboard Shortcuts

Ctrl+S / Cmd+S → Save file

Ctrl+N / Cmd+N → New note

Ctrl+O / Cmd+O → Open file

Ctrl+P / Cmd+P → Print

FAQs

Where are my notes stored?

All notes are stored locally in your browser’s storage. They never leave your computer or device.

Yes, use the “Print” button for a formatted printout with filename and date.

Yes! Use Ctrl+S to save, Ctrl+N for new note, Ctrl+O to open, and Ctrl+P to print.

Yes! It’s great for quick code snippets, HTML editing, or configuration files.

Uses your browser’s built-in spell check. Right-click on misspelled words for suggestions.

ADVERTISEMENT