Skip to content
geeksforgeeks
  • Tutorials
    • Python
    • Java
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
    • Practice Coding Problems
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • jQuery
  • AngularJS
  • ReactJS
  • Next.js
  • React Native
  • NodeJS
  • Express.js
  • MongoDB
  • MERN Stack
  • PHP
  • WordPress
  • Bootstrap
  • Tailwind
  • CSS Frameworks
  • JS Frameworks
  • Web Development
Open In App
Next Article:
How to Add Images to README.md on GitHub?
Next article icon

How to Add Images to README.md on GitHub?

Last Updated : 19 Jun, 2024
Comments
Improve
Suggest changes
Like Article
Like
Report

Adding images to README.md on GitHub is a good practice to keep the individual user's readme effective & interactive, plus it also helps dictate the project admins better in what issues we are solving by displaying an image. In this article, we will learn how to add images to README.md in GitHub and the different ways to do so.

Table of Content

  • Why Add Images to Your README.md?
  • Approach 1: Simple copy-paste method
  • Approach 2: Drag & Drop
  • Approach 3: Using the tag
  • Approach 4: Using the path & description method

Why Add Images to Your README.md?

Including images in your README.md file can:

  • Improve Clarity: Visual aids can make complex information easier to understand.
  • Enhance Aesthetics: A visually appealing README can make your project more inviting to potential contributors.
  • Showcase Features: Screenshots and diagrams can effectively demonstrate the functionality and architecture of your project.

Steps to add images to README.md on GitHub

Approach 1: Simple copy-paste method

Select the image you want to add in the readme and right click on the image & click copy. Or else press CTRL + C. Go on the readme page and click CTRL + V.

Screenshot-(94)
Copy the image from the folder

Paste the image in the readme.md.

Screenshot-(95)
Paste the image

Final output:

Screenshot-(97)
Image pasted
Screenshot-(108)-compressed-(1)
README.md

Approach 2: Drag & Drop

This is probably the easiest among all. Simply click the image, drag it to the browser window & drop it on the readme file. The screenshot will appear on the readme & here's the final output:

Screenshot-(99)
README.md

Approach 3: Using the <img> tag

Using the following syntax of HTML, we can add images to the readme file:

<img src="" alt="">

Here, src is the link address of the image & alt is the text which will be displayed if for some reason the image is unable to load.

Copy the image address of any image.

Screenshot-(100)
Copy Image Address

Add the link to the img src tag in the README file.

Screenshot-(102)
README.md

Here's the final output:

Screenshot-(103)-compressed
Image in README.md

Approach 4: Using the path & description method

Using the following syntax, we can add images to the readme file:

![image description](relative/path/in/repository/to/image.svg)

Add a folder named "images" and add a forest.jpg image in the directory. Add the following command in the readme file:

![forest](images/forest.jpg)

Here, the text within the square brackets is the description of the image file & the text in the parentheses is the path of the image in the repository.

Screenshot-(107)
Directory

Now add the above command in the README.md.

Screenshot-(105)
Look at text at 4th position

Final output:

Screenshot-(106)-compressed
How to Add Images to README.md on GitHub?

Next Article
How to Add Images to README.md on GitHub?

R

riyarjha
Improve
Article Tags :
  • Web Technologies
  • Git

Similar Reads

    How to Add GIFs on README .md File in a GitHub Repository?
    Git is a free and open-source distributed version control system designed to handle everything from small to very large projects. Github is a highly used software that is used for version control. It is more helpful when more than one person is working on a project. GIF as we all know stands for Gra
    2 min read
    How to Embed a Video Into GitHub README.md?
    GitHub README.md files are written in Markdown, which does not support direct video embedding. However, we can embed videos using the GitHub Repository and create links to YouTube videos with an embedded image that acts as a thumbnail. There are several approaches to embedding video into GitHub READ
    2 min read
    How to Add a README To Your GitHub Profile
    Creating a README for your GitHub profile is an excellent way to showcase your projects, skills, and personality to potential employers, collaborators, and the open-source community. A well-crafted README can make your profile stand out and provide valuable information at a glance. In this guide, we
    3 min read
    How to Add Github to Linkedin?
    Adding a GitHub profile to LinkedIn is a great way to showcase our coding projects, contributions, and technical skills. This can enhance our LinkedIn profile by providing potential employers and professional connections with direct access to our work. There are multiple ways to add your GitHub to L
    2 min read
    How to Add Videos on README .md File in a GitHub Repository?
    Git is known as the free and open-source distributed version control system that is specially made to handle everything from small to very large projects. GitHub is a highly used software that is used for version control. When working in a team where we have more than one developer, this software co
    3 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences