For software development and maintenance, contact me at or via

Using GitHub to Host Images

Sat, 14 Jan 2023 by garethbrown

For simple image hosting scenarios, you can host images directly out of a public GitHub respository by following these steps:

Browse to image on, e.g.

Here you will see the GitHub page providing access to view / download the file. But we want the raw file, without GitHub page content wrapping it.

A 'Raw' button doesn't exist for image files, but you can add ?raw=true to end of URL.

Hit enter. You will be redirected to a URL as below.

Here is the image as found at the above URL:

App Software Logo

Note: The redirect adds the raw sub domain part, changes domain to and removes the blob portion of the path.

Test the link in an unauthenticated browser, and then use as required.

The information provided on this Website is for general informational and educational purposes only. While we strive to provide accurate and up-to-date information, we make no warranties or representations, express or implied, as to the accuracy, completeness, reliability, or suitability of the content, including code samples and product recommendations, presented on this Website.

The use of any information, code samples, or product recommendations on this Website is entirely at your own risk, and we shall not be held liable for any loss or damage, direct or indirect, arising from or in connection with the use of this Website or the information provided herein.
UI block loader
One moment please ...