sodcalculator

10 Tech How-To

Markdown in Notepad on Windows 11: A How-To

Guide 10-47302 · Updated · Step by step

This guide shows you how to write and format Markdown directly in Notepad on Windows 11, then preview it as styled text. You’ll learn the essential syntax, how to view your formatted document, and how to avoid common pitfalls. No extra software is needed—just Notepad and a web browser.

What You’ll Need

  • A Windows 11 PC with Notepad (built-in, no installation required)
  • A web browser (Edge, Chrome, Firefox, etc.) to preview the formatted output

Step-by-Step

  1. Open Notepad. Click the Start button, type “Notepad,” and press Enter. The app opens with a blank document.
  2. Write your content using Markdown syntax. Markdown uses plain text symbols to indicate formatting. Here are the most common ones:
    • Headings: Start a line with one to six hash symbols (#). One # is the largest heading, six ###### is the smallest.
    • Bold: Wrap text in double asterisks (**bold**).
    • Italic: Wrap text in single asterisks (*italic*).
    • Bullet list: Start a line with a dash (-) or an asterisk (*) followed by a space.
    • Numbered list: Start a line with “1.” (or any number) followed by a space.
    • Links: Write the link text in square brackets, then the URL in parentheses: [text](https://example.com).
    • Code: Wrap inline code in backticks (`code`). For a block of code, indent each line by four spaces or wrap in triple backticks.
  3. Save the file with a .md extension. Press Ctrl+S, choose a folder, type a name like notes.md (the .md extension is essential), and click Save. Notepad will not add the extension automatically if you omit it, so type it explicitly.
  4. Preview your Markdown in a browser. Right-click the saved .md file in File Explorer, select “Open with,” and choose your web browser. The browser will display the raw text, not the formatted version. To see formatted output, you need a Markdown viewer—see the next step.
  5. Use a free online Markdown viewer. Open a site like markdownviewer.com or dillinger.io in your browser. Copy the entire content of your Notepad file (Ctrl+A, Ctrl+C) and paste it into the viewer’s editor pane. The right pane will show the formatted result.
  6. Alternatively, install a browser extension. If you prefer offline preview, some browser extensions (like “Markdown Viewer” for Chrome or Edge) let you open local .md files directly in the browser with formatting. After installing, right-click the file and choose “Open with” and select your browser—it should render automatically.
  7. Edit and re-preview. Whenever you make changes in Notepad, save the file, then refresh the browser tab (or re-paste) to see the updated formatting.

Common Mistakes

  • Forgetting the .md extension. If you save as notes.txt, the browser won’t recognize it as Markdown. Always type .md at the end of the filename.
  • Not leaving a space after the hash. #Heading won’t render as a heading; you need # Heading.
  • Mismatched asterisks. **bold* (one extra) will not render as bold. Always pair them correctly.
  • Using tabs for lists. In Markdown, a list item starts with a dash or number followed by a space, not a tab. Tabs can cause unexpected indentation.
  • Expecting Notepad to format the text. Notepad is a plain-text editor—it will never show bold or headings. You must preview in a browser or viewer.

Tips

  • Use Notepad’s word wrap. Go to Edit > Word Wrap (or Format > Word Wrap in older versions) to see your lines without horizontal scrolling.
  • Learn the most-used syntax first. Headings, bold, italic, lists, and links cover 90% of everyday writing. You can add tables, images, and blockquotes later.
  • Keep a cheat sheet. Write a small cheatsheet.md file with examples of each syntax. It’s a quick reference you can open anytime.
  • Use the browser’s “View Source” to debug. If something doesn’t render, right-click the preview page and select “View Page Source” to see the raw HTML—this helps you spot missing spaces or mismatched symbols.
  • Save frequently. Notepad doesn’t autosave by default, so press Ctrl+S often, especially before previewing.

Troubleshooting

  • My file opens as plain text in the browser. This is normal—browsers don’t render Markdown by default. Use a viewer or install a browser extension as described in Step 5 and 6.
  • Headings aren’t showing as headings. Check that there is a space between the # and the text. Also, ensure you’re using a new line for the heading—don’t put it in the middle of a paragraph.
  • Bold or italic isn’t working. Verify you have the correct number of asterisks: two on each side for bold, one for italic. Also, make sure there are no spaces between the asterisks and the text (e.g., ** bold** is wrong).
  • Lists are not indenting. In Markdown, sub-items require four spaces (or a tab) before the dash or number. For example:
    - Item 1
        - Sub-item
  • Links are showing as plain text. Ensure the syntax is exactly [text](url) with no spaces between the brackets and parentheses. Also, include the full URL with https://.
  • The viewer shows “Cannot read file.” If you’re using an online viewer, make sure you’re pasting the content, not trying to upload a file. If you’re using a browser extension, check that the file extension is .md and that the extension is enabled.

Frequently Asked Questions

  1. Does Notepad on Windows 11 support Markdown natively? No, Notepad is a plain-text editor. It does not format Markdown, but you can write Markdown syntax in it and preview it elsewhere.
  2. Can I use Markdown in Notepad without an internet connection? Yes, you can write and save Markdown offline. To preview, you’ll need a local viewer or a browser extension that works offline—some extensions do, but online viewers require internet.
  3. What is the best file extension for Markdown files? Use .md (or .markdown). This tells other tools that the file contains Markdown.
  4. Will my Markdown formatting work in other apps like Word or Google Docs? Not directly. Those apps use their own formatting. You can copy the raw Markdown text and use a converter to turn it into rich text, or paste into a Markdown-aware app.
  5. How do I add images in Markdown? Use the syntax ![alt text](image-url). The image will appear in the preview, but not in Notepad itself.
  6. Is there a keyboard shortcut to preview Markdown in Notepad? No, Notepad has no built-in preview. You’ll need to use an external viewer or extension as described.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →