How to Open ASC File: PGP Key, Signature, Grid or CAN Log
An ASC file is a text file, and what it contains decides how you open it. Most are PGP keys, signatures or encrypted messages in text form (you see "-----BEGIN PGP"); others are ESRI ASCII grid rasters used in GIS, or CAN bus logs from Vector tools. Any text editor shows the content. The checker below identifies which kind you have and reads it: key owner and fingerprint, signer and date, who can decrypt a message, a preview of an elevation grid, or a summary of a CAN log.
Choose what you need
Open ASC File Online: Identify & Read It (Free)
Drop an .asc file below, or paste a PGP block. For PGP files the checker shows the key owner, fingerprint and expiry, who signed a signature and when, who can decrypt a message, and the text of clear-signed messages. ESRI ASCII grids get a colored preview with size, extent and value range; Vector CAN logs get a frame and ID summary.
Good to know: private keys and messages stay on your device; the tool never decrypts or uploads anything.
π Nothing is uploaded β your file and keys never leave this deviceOr paste a PGP block (key, message or signature)
On this page
What is an ASC file?
ASC stands for ASCII: an .asc file is plain text, used by several unrelated programs. Open an ASC file in Notepad or TextEdit and the first line tells you which kind it is:
| First line looks like | Kind of ASC file | Open it with |
|---|---|---|
-----BEGIN PGP SIGNATURE----- | Detached signature of a download | GnuPG: gpg --verify |
-----BEGIN PGP PUBLIC KEY BLOCK----- | Someone's public key | Kleopatra, GPG Suite, gpg --import |
-----BEGIN PGP MESSAGE----- | Encrypted (or signed) message | Kleopatra, GPG Suite, gpg -d |
-----BEGIN PGP SIGNED MESSAGE----- | Readable text with a signature | Any text editor; gpg --verify |
-----BEGIN PGP PRIVATE KEY BLOCK----- | A private key backup (keep secret!) | Kleopatra, GPG Suite |
ncols 300 / nrows | ESRI ASCII grid raster (elevation, DEM) | QGIS, ArcGIS |
date β¦ / base hex timestamps absolute | Vector CAN bus log | CANalyzer, CANoe, SavvyCAN, python-can |
The PGP kinds are the most common: "ASCII armor" is OpenPGP data encoded as text so it survives email and web pages. A binary file with the same content would end in .gpg, .pgp or .sig.
How to open an ASC file: quick answer
| What you want | Do this |
|---|---|
| Just see what's in it | Open it in a text editor, or use the checker above |
| Check a software download | Import the developer's key, then gpg --verify file.asc file |
| Read an encrypted message | Decrypt it with your private key in Kleopatra, GPG Suite or gpg |
| Use a terrain/elevation grid | Drag it into QGIS (or ArcGIS: ASCII to Raster) |
| Analyze a CAN trace | Vector CANalyzer/CANoe, SavvyCAN or python-can |
Verify a download with an .asc signature
Many open-source projects publish a signature next to each download, for example tool-2.1.tar.gz and tool-2.1.tar.gz.asc. It proves the file came from the developers and wasn't modified.
- Install GnuPG: Gpg4win on Windows, GPG Suite on Mac, or the
gpgpackage on Linux. - Get the developers' public key from their website (often a KEYS file or a key .asc) and import it:
gpg --import KEYS. - Put the download and its .asc in the same folder and run
gpg --verify tool-2.1.tar.gz.asc tool-2.1.tar.gz. - Look for "Good signature from" and check that the key fingerprint matches the one published by the project.
"BAD signature" means the file was changed or damaged: download it again and don't use it. The checker above shows which key made a signature and when, so you know which public key to look for.
Import a public key (.asc)
A file like publickey.asc or alice_0x75AEBA57.asc from someone's website or email signature is their public key. Check it in the tool above (owner, fingerprint, expiry), then import it:
- Windows: double-click it, or Kleopatra > Import.
- Mac: double-click it to add it to GPG Keychain.
- Linux / command line:
gpg --import publickey.asc; to look without importing,gpg --show-keys publickey.asc. - Email: Thunderbird has OpenPGP built in: Tools > OpenPGP Key Manager > File > Import Public Key(s) From File.
If the tool says the file contains a PRIVATE key, don't import it on a shared computer and never send it to anyone; it should only be your own backup.
Decrypt a PGP message
A block starting with -----BEGIN PGP MESSAGE----- is encrypted for one or more keys (or with a password). The checker shows which key IDs can decrypt it. If one is yours:
- Save the block as a file (or copy it to the clipboard).
- In Kleopatra, choose Decrypt/Verify (or Notepad, paste, then Decrypt/Verify Notepad). In GPG Suite, select the text and use Services > OpenPGP: Decrypt Selection. On the command line:
gpg -d message.asc. - Enter your key's passphrase.
ESRI ASCII grid (GIS raster)
An ASCII grid stores a raster, typically elevation, as text: a short header (ncols, nrows, xllcorner, yllcorner, cellsize, NODATA_value) followed by one number per cell. The checker reads it, shows the size, extent and value range, and draws a colored preview you can download as PNG.
- QGIS (free): drag the .asc into the map, or Layer > Add Layer > Add Raster Layer. Set the coordinate system if there's no .prj file next to it.
- ArcGIS Pro: add it directly or use the ASCII to Raster tool to convert it to a GeoTIFF or grid.
- GDAL:
gdal_translate dem.asc dem.tifconverts it to GeoTIFF.
CAN bus log (Vector ASC)
Vector CANalyzer and CANoe save CAN traces as ASC text: a header with the date and number base, then one line per frame with timestamp, channel, ID, direction and data bytes. The checker counts frames, channels, unique IDs and error frames. To analyze it, open it in CANalyzer/CANoe, the free SavvyCAN, or in Python with python-can (can.ASCReader).
ASC problems and fixes
"gpg: no valid OpenPGP data found"
The block is incomplete or was altered while copying (missing BEGIN/END lines, extra spaces, line wrapping by an email app). Copy the whole block again, including the BEGIN and END lines.
"Can't check signature: No public key"
Import the signer's public key first. The checker shows the key ID or fingerprint you need.
Double-clicking opens the wrong program
Windows may associate .asc with a text editor or another app. To open an ASC file with the right app, right-click > Open with and choose Kleopatra, QGIS or a text editor depending on the kind of file.
The grid appears in the wrong place on the map
The ASC grid has no coordinate system. Set the right CRS in the layer properties, or keep its .prj file in the same folder.
Sources and technical references
- RFC 9580: OpenPGP ASCII armor β IETF
- The GNU Privacy Handbook: making and verifying signatures β GnuPG
- Gpg4win and Kleopatra β Gpg4win
- AAIGrid: Arc/Info ASCII Grid driver β GDAL
- python-can file formats (ASC reader) β python-can
- OpenPGP in Thunderbird β Mozilla Support
Frequently asked questions
How do I open an ASC file?
An ASC file is text, so Notepad or TextEdit shows it. The first line tells you the kind: a PGP key, signature or message opens in Kleopatra, GPG Suite or gpg; an ESRI grid opens in QGIS; a CAN log opens in Vector tools or SavvyCAN. The checker on this page identifies it for you.
How do I verify a file with an .asc signature?
Import the developer's public key, put the download and its .asc in the same folder, and run gpg --verify file.asc file. Look for Good signature and check that the key fingerprint matches the one the project publishes.
How do I import a public key from an .asc file?
Double-click it with Kleopatra (Windows) or GPG Suite (Mac), or run gpg --import key.asc. Before trusting it, compare its fingerprint, shown by the checker on this page, with one the owner gave you separately.
Is it safe to share an .asc key file?
A public key is meant to be shared. A file that starts with BEGIN PGP PRIVATE KEY BLOCK is a private key: never send or upload it, and keep it only as your own backup.
How do I open an ASC grid file in QGIS?
Drag the .asc into the QGIS map or use Layer > Add Layer > Add Raster Layer. If the grid appears in the wrong place, set its coordinate system, because the ASC grid format doesn't store one.
What does 'Can't check signature: No public key' mean?
You haven't imported the key that made the signature. The checker shows the signer's key ID or fingerprint; get that public key from the developer's website, import it and verify again.
Can I decrypt a PGP message in an .asc file online?
Not safely: decryption needs your private key, which should never be uploaded. Use Kleopatra, GPG Suite or gpg -d message.asc on your own computer. The checker here shows which key the message was encrypted for.
What's the difference between ASC and GPG files?
Both hold OpenPGP data. ASC is the text version (ASCII armor) that can be pasted into email; GPG is binary. The same programs read both.
Last updated .