.ORIG

ORIG File

Original File (Backup of an Unmodified File)
Ask a question
QUICK ANSWER

A .orig file is a backup copy of a file in its original, unmodified state. It is created by patch tools, Git merge operations, or manually before editing. It has no format of its own - the real content is whatever the original file was. To open it, check the name before ".orig" to find the actual file type, then rename it or open it with the matching program.

Developer: N/A - generic convention used by patch, diff/merge tools, Git, and manual backups Category: Backup Files Open standard MIME: application/octet-stream
OPENS ON Windows macOS Linux
Related: .BUP · .BAK · .SKB · .SET

On this page

19k+ extensions indexed
Last reviewed Jun 28, 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 ORIG file format?

.orig is a generic file extension typically used for backing up an unmodified copy of a file before it is patched, merged, or edited. Adding the .orig extension to a file emphasizes that this is the original copy that can be restored if needed.

Some tools generate .orig files automatically. The Unix patch utility creates a .orig backup of every file it modifies when run with the -b flag. Git also produces .orig files during merge conflicts, preserving the pre-merge state of a conflicted file for reference. Generated .orig files fill the same role as those created manually - a safety copy of the unaltered original.

The original file extension can be preserved by appending .orig as a suffix, creating what is called a compound extension - for example, config.php.orig or document.doc.orig. This way the information about the type of the original file is retained, making it easy to restore: simply remove the .orig suffix to get the original name back.

A .orig file has no format of its own: it is a byte-for-byte copy of whatever file it backs up, so its content, encoding, and structure are identical to the source. Other common backup-style extensions used for similar purposes include .BAK and .old.

Security & safety

RISK: LOW

A .orig file is just a copy of another file, so it carries exactly the same risk as the original type (a .exe.orig is still an executable; a .js.orig is still a script). It adds no new danger by itself. Main practical caution: don't delete .orig files until you're sure the modified version is correct, and be aware they can contain old secrets/config that you may not want committed to a repo (add *.orig to .gitignore).

Format details

in a nutshell
FULL NAMEOriginal File (Backup of an Unmodified File)aka Original backup file, .orig backup
DEVELOPERN/A - generic convention used by patch, diff/merge tools, Git, and manual backupssince Long-standing Unix convention (patch -b / RCS era, 1980s); reinforced by Git
CATEGORYBackup Files
MIME TYPEapplication/octet-stream
TYPENot a format - a renamed copy of the original file before it was patched/edited; content is whatever the original file was
STANDARDOpen · royalty-free
This extension is also used by…
  • Photo/RAW 'original' backups - Some photo and editing workflows append .orig to keep an untouched copy of an image.
  • Pro Tools / app-specific originals - Occasional application-specific 'original' backup naming, content depending on that app.

Programs that open ORIG files

Windows2 apps
Notepad++ / VS Code (text originals) Open-source Open the .orig directly to read text; or rename removing '.orig' to restore the real type.
The program that created the underlying file Free Identify the type from the name before '.orig' and open with that app (after renaming if needed).
macOS1 app
TextEdit / VS Code (text originals) Open-source Open to read; or strip '.orig' to restore the real extension and let the matching app open it.
Linux1 app
Any editor / the file's native app Open-source Run file name.orig to detect the real type, then open/rename accordingly.

Technical details

deep spec
ContentByte-for-byte copy of the original file - inherits all content, encoding, and structure from the source
EncodingInherits the original file's encoding (text or binary)
Typical sizeIdentical to the file it backs up (no overhead added)
Magic bytesInherits the magic bytes of the source file (e.g., PK for ZIP, %PDF for PDF); the .orig label adds nothing
Created byUnix patch -b, Git merge/rebase conflict resolution, diff tools, and manual user action
Naming conventionEither file.orig or compound extension file.ext.orig - the latter preserves the real file type in the name
RestorationRename back to the original by removing the .orig suffix; no conversion needed
Associated OSLinux, macOS, Windows - cross-platform convention
PurposePreserves pre-patch or pre-merge state of a file for rollback or reference
FormatNot a format - a renaming convention; the file content and structure are identical to the source
Git usageGit creates .orig files during merge conflicts to show the pre-merge version of conflicted files
ReleasedLong-standing Unix convention (patch -b / RCS era, 1980s); reinforced by Git
Latest versionN/A (naming convention, not a versioned format)
Open standardYes · royalty-free
Specificationwww.gnu.org

ORIG conversions

Community Q&A

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

Frequently asked questions

What is a .orig file?
A backup of a file's original, unmodified content - created by patch/merge tools, Git merge conflicts, or manually before editing. It's not a real format; its content is whatever the original file was.
How do I open a .orig file?
Check the name before '.orig' to find the real type, then either open the .orig in that program or rename it (remove '.orig') so the OS recognizes it.
Where do .orig files come from in Git?
Git's merge tools can save the pre-merge version of a conflicted file as filename.orig. Once you've resolved the conflict, the .orig is usually safe to delete.
Can I delete .orig files?
Yes, once you've confirmed the current (modified) version is correct. They're backups; deleting them only removes the old copy.
Why won't Windows open my .orig file?
Windows has no default app for '.orig'. Rename it to restore the original extension (e.g. report.docx.orig → report.docx) or choose 'Open with' and pick the right program.
Are .orig files safe?
They're as safe as the file they copy. Treat a .exe.orig like an executable; treat a .txt.orig like text. Avoid committing them to repositories - they may hold old secrets.

References

1GNU diffutils - Backup file nameswww.gnu.org
2Git - git-mergetool documentationgit-scm.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.TXTPlain Text File
10.MDMarkdown Document

Related extensions

.BUPDVD IFO Backup File
.BAKBackup File (generic)
.SKBSketchUp Backup File
.SETMicrosoft Backup File Set
.BAK~AbiWord auto-saved document file
.BACKUPBackup File (generic)

Free file tools

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

Open the toolbox

Browse file extensions A-Z