.ODC

ODC File

Office Data Connection
Ask a question
QUICK ANSWER

An ODC file is an Office Data Connection - a small text file that tells Excel how to connect to an external database, OLAP cube, or web query. It holds no data itself. Double-click it in Excel to import the connection, then refresh to pull the actual data. Treat it as sensitive: the connection string inside is stored in plain text and may contain server names or credentials.

Developer: Microsoft Category: Settings Files MIME: application/vnd.ms-office.odc
OPENS ON Windows macOS
Related: .ICA · .DS_STORE · .WMZ · .CFG

On this page

19k+ extensions indexed
Last reviewed Jul 17, 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 ODC file format?

.odc is a text-based file format developed by Microsoft for use with Excel and other Office applications. .odc files are used for accessing data from external resources such as databases, OLAP cubes, spreadsheets, or text files. Structurally, each .odc file is an HTML document with an embedded XML island - specifically an <odc:OfficeDataConnection> block - that stores the connection string, command type, and query details needed to reach the external source. Files can be opened in any web browser or text editor as well as in Excel itself.

An .odc file does not contain data; it stores the instructions for how Excel should connect to and refresh data from that source. Each file holds information about the data source including its location, type, authentication credentials, and any associated SQL or MDX queries. Because connection strings may embed server names and credentials, .odc files can expose sensitive infrastructure details if shared without care.

.odc support was introduced in Microsoft Office 2007, which also added built-in data connection management directly within Excel. Files can be created and exported from Excel, and Excel uses them to refresh connected tables and PivotTables from the specified source. In modern Microsoft 365 Excel, Power Query / Get & Transform connections increasingly complement standalone .odc files, though .odc remains fully supported.

Security & safety

RISK: MEDIUM

The .odc file is plain HTML/XML and not executable, but it carries real risks: (1) connection strings are stored in clear text and can expose server names and sometimes credentials - treat .odc files as sensitive; (2) opening an .odc in Excel can trigger an external data connection that pulls from a remote source, which has been used in data- exfiltration/phishing scenarios, so don't open .odc files from untrusted senders; Excel warns before enabling external connections - heed it.

Format details

in a nutshell
FULL NAMEOffice Data Connectionaka Office Data Connection file, Excel data connection file
DEVELOPERMicrosoftsince Microsoft Office 2007
MIME TYPEapplication/vnd.ms-office.odc
TYPEHTML/XML connection-definition file (text)
This extension is also used by…
  • Lotus Notes / generic OpenDocument confusion - Some catalogs mislabel .odc as an OpenDocument file; that is incorrect - .odc is Microsoft's Office Data Connection, not an ODF format.

Programs that open ODC files

Windows3 apps
Microsoft Excel Paid Double-click the .odc; Excel opens it and imports the connection into a new or existing workbook (then refresh to pull data).
Notepad / Notepad++ (or any text editor) Free Open the .odc to read the connection string and query without connecting to anything.
Any web browser Built-in Open the .odc to view it as HTML (it is an HTML document) - read-only inspection.
macOS1 app
Microsoft Excel for Mac Paid Open/import the .odc connection; note some external-data features differ from Windows Excel.

Technical details

deep spec
DeveloperMicrosoft
Primary MIME typeapplication/vnd.ms-office.odc
Alternative MIME typestext/x-ms-odc; text/html
File structureHTML document wrapping an embedded XML island
Core XML element<odc:OfficeDataConnection> within an inline <xml> block
File encodingUTF-8 plain text
EncryptionNone - connection strings and credentials stored in plain text
Typical file size1 KB - 10 KB
File identificationHTML meta tag with ProgId=ODC.Database or ODC.Table; no binary magic bytes
Supported connection targetsRelational databases (SQL Server, Access), OLAP/Analysis Services cubes, Excel workbooks, text files, web queries
Stored parametersConnection string, command type (SQL / MDX / Table), command text, authentication settings, display metadata
Supported platformsWindows; macOS (Excel for Mac)
Modern complementPower Query / Get & Transform connections (Microsoft 365 Excel) increasingly replace .odc files, though .odc remains supported
Related Excel connection formats.iqy (web query), .dqy (database query), .udl (universal data link), .rqy (OLAP query)
ReleasedMicrosoft Office 2007
Latest versionTracks the Office version (Microsoft 365 Excel)
Specificationlearn.microsoft.com

ODC conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with ODC 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 ODC files.

Frequently asked questions

What is an .odc file and is it my data?
No - it's an Office Data Connection, a small file that tells Excel HOW to connect to an external data source (database, cube, web query). It holds no data itself; the data lives in the source it points to.
How do I open an .odc file?
Double-click it in Excel to import the connection, then refresh to load data. To just read what it connects to, open it in any text editor or browser - it's HTML/XML.
Why doesn't my .odc show a spreadsheet?
Because it isn't one. It's a connection definition. You use it in Excel to fetch data from an external source; the .odc by itself is just settings.
Where are .odc files stored?
Usually in your 'My Data Sources' folder (Documents\My Data Sources), so connections can be reused across workbooks.
Is it safe to open an .odc file from someone else?
Be careful. It can make Excel connect to a remote source, and its connection string may expose credentials. Don't open .odc files from untrusted senders, and respect Excel's external-data warnings.
What's the difference between .odc and .iqy?
Both are Excel connection helpers. .iqy is a simple web query (a URL plus parameters); .odc is the richer Office Data Connection (database/OLAP/web) stored as HTML+XML.

References

1Microsoft - Office Data Connection (ODC) file format docslearn.microsoft.com
2Microsoft Support - Create, edit, and manage connections to external datasupport.microsoft.com

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.BINCD/DVD Disc Image (BIN/CUE)
3.PARTPartial Download File
4.MDMarkdown Document
5.RPMSGRestricted Permission Message
6.CRDOWNLOADChrome Partial Download File
7.NOMEDIAAndroid No-Media Marker File
8.PRDXSoftMaker Presentations Document
9.PRO6XProPresenter 6 Bundle File
10.SWFSmall Web Format (Shockwave Flash)

Related extensions

.ICACitrix Independent Computing Architecture file
.DS_STOREmacOS Finder Desktop Services Store (.DS_Store)
.WMZWindows Media Player Skin
.CFGConfiguration File
.LICLicense File
.CONFConfiguration File

Free file tools

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

Open the toolbox

Browse file extensions A-Z