.IQY

IQY File

Microsoft Excel Web Query File
Ask a question
QUICK ANSWER

An IQY file is a small plain-text Microsoft Excel Web Query that tells Excel to download a table from a web address into a spreadsheet. Double-clicking it runs the query in Excel. WARNING: IQY files are a known malware delivery method - never open one that arrived unexpectedly by email. Inspect it in Notepad first; the target URL is visible in plain text.

Developer: Microsoft Corporation Category: Web Files MIME: text/plain
OPENS ON Windows macOS

On this page

19k+ extensions indexed
Last reviewed Aug 16, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the IQY file format?

Text files holding Web queries - Internet Query files used by Microsoft applications, most notably Excel, are saved with the .iqy extension. Such files allow users to fetch information from websites and import it directly into a spreadsheet. .iqy files are by default saved in the MS Office subfolder Program Files\Microsoft Office\Queries.

.iqy is a plain-text file and can be easily opened with any text editor. Each file contains various definitions such as:

  • URL - the address to send the query to
  • Selection - the range of data to be fetched, for example EntirePage or a numbered table index
  • Formatting - controls how data is arranged on the worksheet
  • Optional parameters such as PreFormattedTextToColumns and SingleBlockTextImport

The canonical structure opens with the keyword WEB on the first line, the version number (typically 1) on the second, and the target URL on the third.

.iqy files are used to import external data into spreadsheet documents. In Windows, such files are by default associated with Microsoft Excel. A related .DQY file serves a similar role for ODBC database queries, while imported data is frequently saved as an .XLSX workbook or exported as a CSV. Because .iqy files can point Excel at arbitrary remote locations - including file:// and UNC paths - they became a notorious malware-delivery vector around 2018, exploited in phishing campaigns to download and execute malicious payloads via email attachments. Many mail filters now block .iqy attachments by default. Excel 2016 and later recommend the Power Query ("Get & Transform") connectors as a safer and more capable replacement.

Security & safety

RISK: HIGH

IQY files are a recognized malware delivery vector. Opening one tells Excel to connect to the URL inside, which attackers have used to fetch remote payloads and trigger script/macro chains (notably the 2018 Marap and FlawedAmmyy malspam campaigns). Treat any .iqy that arrives by email or chat as hostile: do NOT double-click it. Inspect it first in Notepad/TextEdit - it's plain text, so you can read the destination URL. Only run .iqy files from a source you fully trust, and keep Excel's external-data and Protected View prompts enabled. Many mail gateways block .iqy attachments by default for this reason.

Format details

in a nutshell
FULL NAMEMicrosoft Excel Web Query Fileaka Internet Query file, Excel Web Query
DEVELOPERMicrosoft Corporationsince 1990s (Microsoft Excel Web Query, since Excel 97/2000)
CATEGORYWeb Files
MIME TYPEtext/plain
TYPEPlain-text query definition (instructs Excel to fetch data from a URL)

Programs that open IQY files

Windows3 apps
Microsoft Excel Paid Double-click to run the query (only if you trust the source). To inspect first, right-click → Open with → Notepad.
LibreOffice Calc Open-source Open the .iqy; Calc can run Excel-style web queries. Still treat unexpected files as suspect.
Notepad (inspect safely) Built-in Right-click → Open with → Notepad to read the plain-text URL WITHOUT running the query. Always do this for unexpected files.
macOS2 apps
Microsoft Excel Paid Double-click to run the query (trusted sources only); use TextEdit to inspect the URL first.
TextEdit (inspect safely) Built-in Open with TextEdit to read the target URL as plain text before deciding to run it.

Technical details

deep spec
File categoryPlain-text instruction file - tells Excel which URL to fetch; contains no spreadsheet data itself
Opening keywordFirst line is always the literal text `WEB`, identifying the query type to the application
Version fieldSecond line holds the format version number, typically `1`
URL fieldThird line holds the target URL Excel connects to when the query is executed
Text encodingASCII / UTF-8, plain text; CRLF line endings on Windows
Typical file sizeUnder 1 KB - usually just a handful of lines
Binary signatureNone - no magic bytes; the file is identified by the `WEB` keyword on line 1
Selection parameterControls which content to import: `EntirePage` pulls all tables; an integer (e.g. `1`) targets a specific table on the page
Parameter promptsOptional `["name","prompt"]` lines let Excel ask the user for a runtime value before executing the query
Refresh behaviorExcel can refresh the query automatically on file open or on a configurable interval (e.g. every 60 minutes) via worksheet connection settings
MIME type`text/plain`; also registered as `application/x-ms-iqy`
Security riskCan reference arbitrary `http://`, `file://`, or UNC paths; heavily exploited in phishing campaigns from 2018 onward; commonly blocked by email filters
Default query folder`%ProgramFiles%\Microsoft Office\Queries\` - Excel's built-in storage location for saved web queries
Superseded byPower Query ("Get & Transform") in Excel 2016+, which supports OAuth, REST APIs, and dozens of additional data-source connectors
Related query formats`.dqy` (ODBC queries), `.rqy` (OLE DB queries), `.oqy` (OLAP/cube queries)
Released1990s (Microsoft Excel Web Query, since Excel 97/2000)
Latest versionStable legacy format; superseded by Power Query (Get & Transform) in Excel 2016+
Specificationsupport.microsoft.com

IQY conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with IQY files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about IQY files.

Frequently asked questions

What is an IQY file?
A Microsoft Excel Web Query - a small text file that tells Excel to download a table from a web address into a spreadsheet. It's an instruction file, not data.
Is it safe to open an IQY file?
Only if you trust the source. .iqy files are a known malware vector because they make Excel fetch remote content. Never open an unexpected .iqy from email; inspect it in Notepad first - the URL is in plain text.
How do I open an IQY file?
Double-click it to run the query in Microsoft Excel (or LibreOffice Calc) - but only from a trusted source. To just see what it does, right-click → Open with → Notepad.
Why did I get an IQY file by email?
Be suspicious - IQY attachments are commonly used in phishing/malware campaigns. A legitimate one usually comes from a known business report. When in doubt, don't open it and report it to IT.
How do I convert an IQY to CSV or Excel?
The .iqy can't be converted directly. Run it in Excel (trusted source), let the data import, then Save As CSV or XLSX to capture a static copy.
What replaced IQY files in Excel?
Power Query / 'Get & Transform Data' and the 'From Web' connector (Excel 2016 and later) are the modern way to import web and external data.

References

1Microsoft Support - Import data from external sources (Power Query)support.microsoft.com
2Proofpoint - IQY files abused in malspam (Marap/FlawedAmmyy)www.proofpoint.com

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.BINCD/DVD Disc Image (BIN/CUE)
4.DATProgram Data File (generic)
5.PARTPartial Download File
6.EXEWindows Executable (Portable Executable)
7.RPMSGRestricted Permission Message
8.NOMEDIAAndroid No-Media Marker File
9.MDMarkdown Document
10.TXTPlain Text File

Related extensions

.CRDOWNLOADChrome Partial Download File
.JNLPJava Network Launch Protocol file
.WEBARCHIVESafari Web Archive
.PARTPartial Download File
.DOWNLOADPartial / Incomplete Download File
.ASPXActive Server Page Extended (ASP.NET Web Form)

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z