Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Windows 11 Notepad AI: Explain Code Snippets?

· 5 min read · Home Tech

In this article
  1. Background: Notepad's Evolution
  2. How It Works
  3. Requirements and Availability
  4. How to Get It (If You Qualify)
  5. Common Problems and Misconceptions
  6. Alternatives and Comparisons
  7. Privacy and Safety Considerations
  8. Frequently Asked Questions

Yes, Windows 11 Notepad can now use AI to explain code snippets, but only if you have a Copilot+ PC and the latest Notepad update. This feature, called "Explain with Copilot," is built directly into the Notepad app and works on selected text without copying it to another tool. It is not available on all Windows 11 devices, and it requires a Microsoft account and internet connection.

Background: Notepad's Evolution

Notepad has been a staple of Windows since 1985, but for decades it remained a basic text editor. In 2018, Microsoft began adding more features like a find-and-replace tool, line numbers, and zoom. The Windows 11 version introduced a dark mode, tabs, and a modern interface. In 2023, Microsoft started integrating AI features across Windows, including in Notepad, as part of its Copilot initiative. The "Explain with Copilot" feature appeared in Notepad version 11.2311.29.0 and later, but it is gated behind hardware requirements.

How It Works

The feature is straightforward to use:

  1. Open Notepad and load a file containing code (or any text).
  2. Select the code snippet you want explained.
  3. Right-click the selection and choose Explain with Copilot (or find the same option in the menu bar).
  4. Notepad sends the selected text to Microsoft's cloud AI service.
  5. A new window or pane opens with a plain-language explanation of what the code does.

The explanation appears in a separate pane, so you can keep your code visible. You can copy the explanation or ask follow-up questions in the Copilot chat interface that opens. The feature works with any programming language, but it is most accurate with popular ones like Python, JavaScript, C#, and SQL.

Requirements and Availability

Not every Windows 11 user can use this feature. Microsoft has stated that "Explain with Copilot" requires:

  • A Copilot+ PC (a designation for new hardware with a Neural Processing Unit, or NPU, capable of 40+ TOPS).
  • The latest version of Notepad from the Microsoft Store.
  • A Microsoft account and an internet connection.
  • Windows 11 version 24H2 or later (for Copilot+ features).

If you don't have a Copilot+ PC, you won't see the option, even if you have the latest Notepad. Microsoft has not announced plans to roll this out to all Windows 11 devices. You can check your Notepad version by clicking the gear icon and selecting "About Notepad."

How to Get It (If You Qualify)

If you have a Copilot+ PC, follow these steps:

  1. Open the Microsoft Store and check for updates to Notepad.
  2. Install any pending updates.
  3. Restart Notepad.
  4. Open a file with code, select a snippet, and right-click.
  5. Look for "Explain with Copilot" in the context menu.

If the option is missing, try signing out and back into your Microsoft account in Windows Settings. Also, ensure your system region and language are set to a supported locale (English is the primary language for Copilot features).

Common Problems and Misconceptions

Many users expect the feature to work on any Windows 11 machine, but it doesn't. That's the most common misunderstanding. Another issue is that the feature may be greyed out when the selected text is too long – Microsoft has a character limit (roughly 8,000 characters) for the explanation request. If you exceed it, trim the selection. Some users also worry about privacy: the selected text is sent to Microsoft's servers, so do not use this feature with sensitive or proprietary code if that's a concern. The explanation is generated by an AI model, so it may occasionally be incorrect or miss context – always verify critical logic yourself.

Alternatives and Comparisons

If you don't have a Copilot+ PC, or you prefer other tools, several alternatives exist:

  • GitHub Copilot – a paid AI assistant that works in many code editors (like VS Code) and can explain code, but it's not integrated into Notepad.
  • ChatGPT, Claude, or other chatbots – you can paste your code into these web apps and ask for an explanation. They work on any device with a browser.
  • Visual Studio Code with extensions – free extensions like "Code Explain" or "AI Explain" can do similar things within a more powerful editor.
  • Online code explainers – websites like CodeExplain.io or ExplainDev offer similar services, though they may have usage limits.

Compared to these, Notepad's built-in feature is convenient because it's already there, but it's less flexible than a dedicated AI assistant. The quality of the explanation is similar to what you'd get from a general-purpose chatbot, but it lacks the ability to edit code or run it.

Privacy and Safety Considerations

When you use "Explain with Copilot," your selected code is transmitted to Microsoft's servers. Microsoft's privacy policy states that Copilot interactions are used to improve the service, but they are not used to train the AI models without your explicit consent. However, you should still avoid pasting passwords, API keys, or personal data into Notepad if you plan to use this feature. The explanation is generated by an AI, so it may misunderstand code with unusual logic or dependencies. Always treat the output as a starting point, not a definitive analysis.

Frequently Asked Questions

Why don't I see "Explain with Copilot" in Notepad?

Most likely because your PC is not a Copilot+ PC. This feature is exclusive to devices with an NPU that meets Microsoft's Copilot+ specification. Even if you have Windows 11, the option won't appear on older hardware. Check your Notepad version and Windows update, but the hardware requirement is the main gate.

Does the feature work offline?

No, it requires an internet connection because the AI processing happens in Microsoft's cloud. If you're offline, the option will be greyed out or show an error.

Can I use it with any programming language?

Yes, the AI can attempt to explain code in any language, but it works best with widely used languages like Python, JavaScript, Java, C++, and C#. For obscure or very old languages, the explanation may be less accurate.

Is my code stored or shared?

Microsoft says that Copilot interactions are not used to train models without consent, but the code is sent to their servers for processing. It may be stored temporarily for service improvement. Avoid using it with confidential code if that's a concern.

Can I ask follow-up questions about the code?

Yes, after the explanation appears, a Copilot chat pane opens. You can ask questions like "What does this function return?" or "How can I optimize this loop?" and the AI will respond in context.

Is there a limit to how much code I can explain at once?

Yes, Microsoft has a character limit (around 8,000 characters) for the selected text. If you select more, the feature may be disabled or you'll get an error. Select smaller chunks to work around this.