How to open .ASC files on Windows
To open .ASC files on Windows, right-click the .ASC file and choose Open with; if you are unsure what it is, open it first in Notepad or another text editor and check the "BEGIN PGP" header.
Step-by-step instructions
- Right-click the .ASC file and choose Open with; if you are unsure what it is, open it first in Notepad or another text editor and check the "BEGIN PGP" header.
- For OpenPGP use, install or open it with Gpg4win/Kleopatra or GnuPG, then choose the relevant action: import a key, decrypt a message, or verify a signature.
- If the .ASC file is a detached signature for a download, keep it in the same folder as the original file and verify it with Kleopatra or GnuPG rather than trying to run it.
Recommended software
- VS Code
- Notepad++/TextEdit
- jq (CLI)
Alternative methods
- Open .ASC in a browser-based viewer if desktop apps fail.
- Try opening .ASC on Windows with a secondary app to rule out app-specific issues.
- Convert .ASC only with trusted tools when direct opening is not possible.
Common issues
The file opens as a block of strange text
That is normal for ASCII-armored OpenPGP data. The text is an encoded key, message, or signature, not something a word processor can interpret meaningfully.
- Check the first line to identify the type, such as PGP MESSAGE, PGP PUBLIC KEY BLOCK, PGP PRIVATE KEY BLOCK, or PGP SIGNATURE.
- Use OpenPGP software for the correct action: import, decrypt, or verify.
- Do not edit and save the text unless you know what you are doing, because small changes can corrupt the data.
Signature verification fails
A detached .ASC signature must match the exact original file and requires the correct signer public key. Verification fails if the download changed, the wrong file is selected, or the key is missing or untrusted.
- Make sure you have both files: the original download and its matching .ASC signature.
- Import the signer's public key from a trusted source.
- Verify the signature against the original file, not against the .ASC file by itself.
- If verification still fails, re-download both files from the official source.
Decryption asks for a secret key or passphrase
An encrypted OpenPGP .ASC message can only be decrypted with the matching private key, and the private key may also be protected by a passphrase.
- Confirm that the message was encrypted to one of your public keys.
- Make sure the corresponding private key is available in your OpenPGP keyring.
- Enter the correct private-key passphrase when prompted.
A public key imports but is not trusted
Importing a public key only adds it to your keyring. It does not prove that the key really belongs to the person or project named in it.
- Compare the key fingerprint with a value published through a trusted channel.
- Do not rely only on the file name or email address shown in the key.
- Follow your OpenPGP tool's trust or certification workflow after verifying the fingerprint.
Security note
A .ASC file can contain a private key block. Treat any file beginning with "-----BEGIN PGP PRIVATE KEY BLOCK-----" as highly sensitive and do not upload, share, or import it on untrusted devices.