{"meta":{"title":"Attaching files","intro":"You can convey information by attaching a variety of file types to your issues and pull requests.","product":"Get started","breadcrumbs":[{"href":"/en/get-started","title":"Get started"},{"href":"/en/get-started/writing-on-github","title":"Writing on GitHub"},{"href":"/en/get-started/writing-on-github/working-with-advanced-formatting","title":"Work with advanced formatting"},{"href":"/en/get-started/writing-on-github/working-with-advanced-formatting/attaching-files","title":"Attaching files"}],"documentType":"article"},"body":"# Attaching files\n\nYou can convey information by attaching a variety of file types to your issues and pull requests.\n\n> \\[!NOTE]\n> For public repositories, uploaded files can be accessed without authentication. In the case of private and internal repositories, only people with access to the repository can view the uploaded files.\n\nTo attach a file to an issue or pull request conversation, drag and drop it into the comment box.\nAlternatively, you can click <svg version=\"1.1\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" class=\"octicon octicon-paperclip\" aria-label=\"Attach files\" role=\"img\"><path d=\"M12.212 3.02a1.753 1.753 0 0 0-2.478.003l-5.83 5.83a3.007 3.007 0 0 0-.88 2.127c0 .795.315 1.551.88 2.116.567.567 1.333.89 2.126.89.79 0 1.548-.321 2.116-.89l5.48-5.48a.75.75 0 0 1 1.061 1.06l-5.48 5.48a4.492 4.492 0 0 1-3.177 1.33c-1.2 0-2.345-.487-3.187-1.33a4.483 4.483 0 0 1-1.32-3.177c0-1.195.475-2.341 1.32-3.186l5.83-5.83a3.25 3.25 0 0 1 5.553 2.297c0 .863-.343 1.691-.953 2.301L7.439 12.39c-.375.377-.884.59-1.416.593a1.998 1.998 0 0 1-1.412-.593 1.992 1.992 0 0 1 0-2.828l5.48-5.48a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-5.48 5.48a.492.492 0 0 0 0 .707.499.499 0 0 0 .352.154.51.51 0 0 0 .356-.154l5.833-5.827a1.755 1.755 0 0 0 0-2.481Z\"></path></svg> below the issue comment box to browse, select, and add a file from your computer.\n\n![Screenshot of the issue comment box. The \"Attach files\" icon is outlined in orange.](/assets/images/help/issues/attach-file.png)\n\nFor a pull request, you can also click <svg version=\"1.1\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" class=\"octicon octicon-paperclip\" aria-label=\"Attach files\" role=\"img\"><path d=\"M12.212 3.02a1.753 1.753 0 0 0-2.478.003l-5.83 5.83a3.007 3.007 0 0 0-.88 2.127c0 .795.315 1.551.88 2.116.567.567 1.333.89 2.126.89.79 0 1.548-.321 2.116-.89l5.48-5.48a.75.75 0 0 1 1.061 1.06l-5.48 5.48a4.492 4.492 0 0 1-3.177 1.33c-1.2 0-2.345-.487-3.187-1.33a4.483 4.483 0 0 1-1.32-3.177c0-1.195.475-2.341 1.32-3.186l5.83-5.83a3.25 3.25 0 0 1 5.553 2.297c0 .863-.343 1.691-.953 2.301L7.439 12.39c-.375.377-.884.59-1.416.593a1.998 1.998 0 0 1-1.412-.593 1.992 1.992 0 0 1 0-2.828l5.48-5.48a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-5.48 5.48a.492.492 0 0 0 0 .707.499.499 0 0 0 .352.154.51.51 0 0 0 .356-.154l5.833-5.827a1.755 1.755 0 0 0 0-2.481Z\"></path></svg> in the formatting bar above the pull request comment box.\n\n![Screenshot of the pull request comment box. The \"Attach files\" icon is outlined in orange.](/assets/images/help/pull_requests/attach-file.png)\n\nWhen you attach a file, it is uploaded immediately to GitHub and the text field is updated to show the anonymized URL for the file. For more information on anonymized URLs see [About anonymized URLs](/en/authentication/keeping-your-account-and-data-secure/about-anonymized-urls).\n\n> \\[!NOTE]\n> In many browsers, you can copy-and-paste images directly into the box.\n\nThe maximum file size is:\n\n* 10MB for images and gifs\n* 10MB for videos uploaded to a repository owned by a user or organization on a free GitHub plan\n* 100MB for videos uploaded to a repository owned by a user or organization on a paid GitHub plan\n* 25MB for all other files\n\n> \\[!NOTE]\n> To upload videos greater than 10MB to a repository owned by a user or organization on a paid GitHub plan, you must either be an organization member or outside collaborator, or be on a paid plan.\n\n## Supported file types\n\nThe following image and media file types are supported in all contexts.\n\n### Image and media files\n\n* PNG (`.png`)\n* GIF (`.gif`)\n* JPEG (`.jpg`, `.jpeg`)\n* SVG (`.svg`)\n* Video (`.mp4`, `.mov`, `.webm`)\n\n  > \\[!NOTE]\n  > Video codec compatibility is browser specific, and it's possible that a video you upload to one browser is not viewable on another browser. At the moment we recommend using H.264 for greatest compatibility.\n\n## Additional file types\n\nThe following file types are supported for uploads in issue comments, pull request comments, and discussion comments within repositories. This list of file types is also supported in organization discussions.\n\n### Documents\n\n* PDFs (`.pdf`)\n* Microsoft Office documents (`.docx`, `.pptx`, `.xlsx`, `.xls`` ,.xlsm`)\n* OpenDocument formats (`.odt`, `.fodt`, `.ods`, `.fods`, `.odp`, `.fodp`, `.odg`, `.fodg`, `.odf`)\n* Rich text and word processing files (`.rtf`, `.doc`)\n\n### Text and data files\n\n* Plain text and markup (`.txt`, `.md`, `.copilotmd`)\n* Data and tabular files (`.csv`, `.tsv`, `.log`, `.json`, `.jsonc`)\n\n### Development and code files\n\n* C files (`.c`)\n* C# files (`.cs`)\n* C++ files (`.cpp`)\n* CSS files (`.css`)\n* Diagrams (`.drawio`)\n* Dump files (`.dmp`)\n* HTML files (`.html`, `.htm`)\n* Java files (`.java`)\n* JavaScript files (`.js`)\n* Jupyter notebooks (`.ipynb`)\n* Patch files (`.patch`)\n* PHP files (`.php`)\n* Profiling files (`.cpuprofile`)\n* Program database files (`.pdb`)\n* Python files (`.py`)\n* Shell scripts (`.sh`)\n* SQL files (`.sql`)\n* TypeScript files (`.ts`, `.tsx`)\n* XML files (`.xml`)\n* YAML files (`.yaml`, `.yml`)\n\n> \\[!NOTE]\n> If you use Linux and try to upload a `.patch` file, you will receive an error message. This is a known issue.\n\n### Archive and compressed files\n\n* Archives and packages (`.zip`, `.gz`, `.tgz`)\n\n### Communication and logs\n\n* Text and email files (`.debug`, `.msg`, `.eml`)\n\n### Images\n\n* Bitmap and TIFF images (`.bmp`, `.tif`, `.tiff`)\n\n### Audio\n\n* Audio files (`.mp3`, `.wav`)"}