.LOG file extension
To open .LOG files on Windows, right-click the .log file and choose Open (or Open with) and select Notepad (commonly the default for .log on Windows).
To open a .log file, use a plain-text editor (for example, Notepad on Windows). Most .log files are just text, so any standard text viewer/editor can display them.
Last updated: June 12, 2026
Open on your device
Choose your operating system for a dedicated step-by-step opening guide.
How to open .LOG files
Use these platform-specific instructions to open .LOG files safely.
Windows
- Right-click the .log file and choose Open (or Open with) and select Notepad (commonly the default for .log on Windows).
- If the file is very large and Notepad struggles, try opening it with another text editor or view a copied portion of the file.
Mac
- Try double-clicking the .log file to open it in your default text editor/viewer.
- If it doesn’t open as text, right-click the file, choose Open With, and pick a plain-text editor.
Linux
- Open the .log file with a plain-text editor from your desktop environment.
- If file associations look wrong, check your desktop’s MIME/type mapping (Linux desktops commonly rely on the freedesktop.org shared MIME-info system).
iOS
- Open the .log file in a text-capable app via the Files app; if it won’t display cleanly, transfer it to a computer and open it in a desktop text editor.
Android
- Open the .log file with a text viewer/editor app; if it appears garbled or extremely large, transfer it to a computer for easier viewing in a desktop text editor.
Security notes
- A .log file is usually plain text (often treated as text/plain), so it typically does not contain executable code by itself; however, its contents can still include sensitive information (usernames, paths, IP addresses, error traces). Review before sharing.
- Logs may contain misleading text (for example, messages that look like commands or alerts). Treat log content as untrusted output from a program, not instructions to run.
- Be cautious with automated tools that parse logs: even though logs are plain text, very large or malformed inputs can cause performance issues or trigger bugs in viewers/parsers.
If you did not expect this file
This extension is usually plain data, text, or structured content—not a program by itself. The practical risk is social engineering (a scam attachment or misleading filename). For trusted senders you rarely need heavy-handed antivirus wording; use these tools when you want an extra check on unexpected downloads.
Avast offers free and premium antivirus software that protects against viruses, malware, ransomware, and phishing. Scan files before opening them to ensure safety.
NortonNorton 360 delivers comprehensive antivirus protection, VPN, and identity theft monitoring. Scan files for threats before opening to keep your device secure.
We may earn a commission when you use affiliate links. This supports our free file extension guides.
Can't open this file?
These are the most common causes and fixes when .LOG files fail to open.
Common reasons
- The .log file opens in the wrong app (or won’t open as text)
- The log file is too large or slow to open
- The text looks unreadable or has strange symbols/line wrapping
Fix steps
- Use “Open with” (or the platform equivalent) and choose a plain-text editor.
- If you want, change the default app association for .log files to a text editor.
OS-specific troubleshooting
What is a .LOG file?
A .log file is commonly a log file: a computer file where events are recorded (such as status messages, errors, or audit trails). In practice, most .log files are stored as plain text and are often treated as the MIME type text/plain. The exact content and structure vary by the program that produced the log (timestamps, severity levels, and message lines are common).
Background
Log files are widely used to record what a program or system did over time—useful for troubleshooting, monitoring, and auditing. A single log can capture routine informational messages as well as warnings and errors, often in chronological order.
Because many logs are plain text, they are easy to view with basic tools and are commonly associated with the generic text/plain media type defined in MIME standards. On Windows, .log files are often opened by default with Notepad, reflecting their typical plain-text nature.
Not every .log file is identical: some applications write very large logs, some rotate logs into multiple files, and some include structured text conventions. Even so, the core practical expectation remains that a .log file is readable text unless a specific application uses the extension for a specialized format.
Common MIME types: text/plain
Further reading
Authoritative resources for more details on the .LOG format.
Common .LOG issues
The .log file opens in the wrong app (or won’t open as text)
Because .log is a generic extension and file associations vary, the system may try to open it in an unexpected program rather than a text editor.
- Use “Open with” (or the platform equivalent) and choose a plain-text editor.
- If you want, change the default app association for .log files to a text editor.
The log file is too large or slow to open
Logs can grow quickly; a basic editor may freeze or fail when loading very large plain-text files.
- Make a copy of the file before working with it.
- Try viewing only a portion of the file (for example, by copying it to a smaller file) or use a different text editor designed to handle large text files.
The text looks unreadable or has strange symbols/line wrapping
Some logs include non-ASCII characters or use different newline/wrapping conventions; plain text formatting details are standardized under the text/plain media type and related specifications.
- Try opening the file in a different text editor that lets you change text encoding and line wrapping options.
- If you’re sharing the log, keep it as plain text and avoid reformatting that could change line breaks or spacing.
FAQ
What is a .log file used for?
It’s commonly used to record events from software or systems—status messages, warnings, and errors—so you can troubleshoot or audit what happened over time.
Are .log files just text?
Most are plain text and can be opened in basic editors (for example, Notepad on Windows). The exact structure depends on the application that created the log.
What MIME type should a typical .log file use?
Many plain-text logs are appropriately treated as text/plain, as defined by MIME standards (RFC 2046) and clarified by later text/plain guidance (RFC 3676).
Why does Linux show a different type or icon for my .log file?
Linux desktop environments commonly determine file types and associations using the freedesktop.org shared MIME-info system, which maps patterns and content to MIME types and preferred apps.
Similar file extensions
Compare related formats in the same category to find the right tool faster.
- .pdf - Portable Document Format
- .docx - Microsoft Word Open XML Document
- .xlsx - Microsoft Excel Open XML Spreadsheet
- .pptx - Microsoft PowerPoint Open XML Presentation
- .txt - Plain Text File
- .xlsm - Excel Macro-Enabled Workbook (Office Open XML)
- .ppsx - PowerPoint Show (Office Open XML Slideshow)
- .pptm - PowerPoint Macro-Enabled Presentation (Open XML)