The rendered README shows here as you type.
README preview
Paste a README.md, or load one from a repository, and see it rendered with GitHub Flavored Markdown before you push.
Preview
How to use it
- Paste your README into the left box, or type a repository and press Load README to pull its current one.
- The preview updates as you type: tables, task lists,
> [!NOTE]alerts, images and the anchor links GitHub puts on headings. - Edit until it reads well, then copy the text back into your README.md.
What renders like GitHub, and what does not
The preview uses GitHub Flavored Markdown: tables, strikethrough, task lists, autolinks, fenced code and the five alert types. Heading anchors follow GitHub’s rule, so links such as #installation work.
- Relative images and links in a loaded README point to the repository, as on GitHub.
- Raw HTML such as
<p align="center">,<details>and<img width>works; scripts, styles, forms and event handlers are removed, as GitHub does. - Not rendered here: Mermaid diagrams, math, emoji shortcodes such as
:rocket:, and syntax colours in code blocks.
What a good README answers
In this order: what it is, in one sentence; a screenshot or example output; how to install it; the shortest working example; where to get help; the license. Long reference material belongs in docs; link to it.
- Put the one-line description and badges at the very top. The badge generator builds them.
- Use
##sections so GitHub’s outline menu and a table of contents can find them. - Show commands in fenced code blocks, ready to copy.
Related tools
Questions people ask
How do I preview a README before pushing to GitHub?
Paste it above. The preview renders GitHub Flavored Markdown as you type, including tables, task lists and alerts, so you see the result before you commit.
How do I center an image in a README?
Wrap it in HTML: <p align="center"><img src="logo.png" width="200"></p>. GitHub keeps the align attribute, and this preview does too.
Why does my image not show?
In a pasted README, relative paths such as docs/shot.png have no repository to point to. Load the README from its repository, or use a full https:// address.
How do I write a note or warning box?
Start a blockquote with the alert type: > [!NOTE], > [!TIP], > [!IMPORTANT], > [!WARNING] or > [!CAUTION], then the text on the next line.
Is my README uploaded?
No. Pasted text is rendered in your browser. Loading from a repository asks GitHub’s API for the file and nothing else.