Skip to content
ReadmeOrbit

Frequently asked questions

Answers to common questions about README files, Markdown and GitHub — and about using ReadmeOrbit to write them.

README basics

What is a README file?

A README is a text file that introduces a project. It usually sits in the root of a repository and explains what the project does, how to install it, and how to use it.

On GitHub, GitLab and most other code hosts, the README is rendered on the repository's front page, so it's the first thing visitors read. That's why developers include one: it helps people decide whether the project is useful to them, gets new users running quickly, and saves maintainers from answering the same questions repeatedly.

What should a README file contain?

It depends on the project, but most good READMEs cover:

  • Project description — what it is and who it's for, in a sentence or two
  • Features — the handful of things that make it worth using
  • Installation — copy-pasteable steps and any prerequisites
  • Usage — the smallest example that actually works
  • Configuration — options, environment variables and defaults
  • Examples — screenshots, GIFs or more complete code samples
  • Contributing — how to report issues and open pull requests
  • License — what people are allowed to do with the code

A small script might only need a description and a usage example. A popular library may add a table of contents, badges, an FAQ and a roadmap. Include what a newcomer actually needs, in the order they'll need it. The README best practices guide goes deeper.

How do you write a good README?

Start with the reader. Someone landing on your repository wants to know what it is, whether it solves their problem and how to try it, roughly in that order. A structure that works for most projects:

  1. Title and one-sentence description directly at the top
  2. A screenshot or short example showing the result
  3. Installation with commands people can copy
  4. Usage with a minimal, runnable example
  5. Features and configuration for readers who want more detail
  6. Contributing and license at the end

Keep paragraphs short, use headings so people can scan, and test your installation steps on a clean machine. If you'd rather not start from a blank page, open the ReadmeOrbit editor or pick one of the templates — the built-in review points out missing sections as you write.

How do you create a README file?

A README is a plain text file, almost always written in Markdown and named README.md. To create one:

  • On GitHub: tick Add a README file when creating a repository, or click Add a README on an existing repository's page.
  • Locally: create a file called README.md in the root of your project and open it in any code editor, such as VS Code.
  • From the terminal:
bash
echo "# My Project" > README.md

You can also write it in a Markdown editor like ReadmeOrbit, which shows a live preview, then download README.md and commit it to your repository.

GitHub looks for a README in the .github folder, the repository root and the docs folder, and displays the first one it finds.

Markdown and formatting

How do you format a README?

READMEs are formatted with Markdown, a lightweight syntax that turns plain text into headings, lists and links:

markdown
# Heading 1
## Heading 2

**Bold**, *italic* and `inline code`

- Bulleted item
1. Numbered item

[Link text](https://example.com)
![Alt text](docs/screenshot.png)

> A blockquote

| Option | Default |
| ------ | ------- |
| port   | 3000    |

For code blocks, wrap code in triple backticks and name the language (for example ```js) so it gets syntax highlighting. GitHub also supports task lists, footnotes and alert callouts. See the Markdown cheatsheet for the full list with examples.

How do you add an image to a GitHub README?

Use Markdown image syntax — an exclamation mark, alt text in square brackets, and the image path in parentheses:

markdown
![Screenshot of the dashboard](docs/screenshot.png)

The path can be relative to the README (an image committed to your repository) or a full URL. Relative paths are usually the most reliable, because the image stays versioned with your code. You can also drag and drop an image into the README editor on GitHub, which uploads it and inserts the link for you.

Markdown can't set an image's size. GitHub allows a few HTML attributes, so you can use an <img> tag instead:

html
<img src="docs/logo.png" alt="Project logo" width="200">

Always write meaningful alt text — it's read by screen readers and shown if the image fails to load.

How do you embed a video in a GitHub README?

GitHub doesn't support <iframe> embeds in READMEs, so you can't paste a YouTube or Vimeo player into one. There are two approaches that do work:

1. Upload the video to GitHub. Edit the README on github.com and drag an .mp4, .mov or .webm file into the editor. GitHub uploads it (within its file size limits) and inserts a link on its own line, which GitHub renders as a video player.

2. Link a thumbnail to the video. For videos hosted elsewhere, show a clickable image that opens the video:

markdown
[![Watch the demo](https://img.youtube.com/vi/VIDEO_ID/0.jpg)](https://www.youtube.com/watch?v=VIDEO_ID)

For short demos, an animated GIF committed to the repository is another option — it's added just like any other image. Video rendering is controlled by GitHub, so other sites that display your README (package registries, for example) may show only a link.

How do you right-align text in a GitHub README?

Standard Markdown has no alignment syntax. GitHub does allow the HTML align attribute on some elements, which is the usual workaround:

html
<p align="right">Right-aligned text</p>

<div align="center">
  <img src="docs/logo.png" alt="Project logo" width="120">
</div>

For tables, use a colon in the separator row to right-align a column:

markdown
| Package | Size |
| ------- | ---: |
| core    | 4 kB |

GitHub sanitizes README HTML, so style attributes, CSS classes and <style> tags are removed. Stick to align and the table syntax above rather than CSS.

How do you preview a README in VS Code?

VS Code has a built-in Markdown preview — no extension needed. With your README.md open:

  • Press Ctrl + Shift + V (⌘ + Shift + V on macOS) to open the preview in a tab.
  • Press Ctrl + K, then V (⌘ + K, then V) to open it side by side with the editor.
  • Or open the Command Palette and run Markdown: Open Preview to the Side.

The preview updates as you type. It's close to GitHub's rendering but not identical, so some GitHub-specific features may look different. If you want to preview a README in the browser without installing anything, paste it into the ReadmeOrbit editor.

GitHub

How do you create a GitHub profile README?

A profile README is a README that appears at the top of your GitHub profile page. Developers use it to introduce themselves and highlight their work, skills, current projects and links.

  1. Create a new public repository with exactly the same name as your GitHub username.
  2. Tick Add a README file (GitHub will mention that this is a special repository).
  3. Edit README.md — anything you commit there shows on your profile.

Keep it short: who you are, what you work on, a few featured projects and how to reach you. ReadmeOrbit's Portfolio template is a ready-made starting point with stack badges and featured projects.

How do you translate a README file?

The common convention is one file per language, with the language code in the file name, next to the main README:

text
README.md         (English)
README.es.md      (Spanish)
README.zh-CN.md   (Simplified Chinese)

Then add a language switcher near the top of each file so readers can move between them:

markdown
**English** · [Español](README.es.md) · [简体中文](README.zh-CN.md)

GitHub always displays README.md on the repository page and doesn't pick a translation based on the visitor's language, so keep the main file in the language most of your users read. Note the date or version each translation was last updated so readers know if it's behind.

Using ReadmeOrbit

Is ReadmeOrbit free?

Yes. ReadmeOrbit is free to use, with no account and no sign-up. Open the editor and start writing.

Where are my READMEs stored?

In your browser. ReadmeOrbit saves your drafts to your browser's local storage (IndexedDB) as you type. They're never uploaded to a server, and there's no ReadmeOrbit account or cloud copy. Clearing your browser's site data or using a private window removes them, and some browsers (such as Safari) may clear data for sites you haven't visited in a while — so use Back up all in the editor's README list, or download anything you want to keep. See the Privacy Policy for details.

Will my README look the same on GitHub?

The content will. Themes and accent colours only change how the preview looks inside ReadmeOrbit — the README.md you download is plain, portable Markdown, and GitHub renders it with its own styling.

Ready to write yours?

Open the editor — no sign-up, saved in your browser.

Create README