Free tool

Citation Generator

Build a formatted website citation in APA 7, MLA 9 or Harvard style. Fill in the details, generate and copy.

Your formatted citation will appear here.

How to use the Citation Generator

  1. Choose a citation style: APA 7, MLA 9 or Harvard.

  2. Fill in the author, page title, website or publisher, year and URL.

  3. Click “Generate citation” to build the formatted reference.

  4. Click “Copy citation” to copy it into your bibliography.

About citation styles

Different subjects and institutions require different citation formats. APA 7th edition is common in psychology, education and the social sciences and uses an author–date format. MLA 9th edition is widely used in the humanities and emphasises the author and page. Harvard referencing, popular in the UK, is another author–date system with its own punctuation rules. Not sure which one your class wants? Our APA vs MLA comparison guide walks through the choice with side-by-side examples.

Correct citations do more than avoid plagiarism — they let your reader find every source you used and they make your essay look properly finished. A few details matter most: capitalise titles exactly as your style requires (our case converter can reformat a title in seconds), double-check the year and the URL, and keep your reference list alphabetised by author surname.

This generator builds website citations in all three styles from the details you enter. It is a strong starting point, but citation rules have many special cases — always compare the result with your institution's official style guide before a final submission. Writing an essay right now? Check it meets the word limit with our word counter before you export your bibliography.

Website citation examples in APA, MLA & Harvard

Here is how the same webpage looks in each of the three styles. Notice how each style arranges the author, year, title and URL differently:

Two extra details separate a finished bibliography from a sloppy one. First, match every reference-list entry to an in-text citation: APA and Harvard use (Author, Year) in the text, while MLA uses (Author page). If a source is missing an author, lead with the page title instead. Second, keep the list alphabetical by the first word of each entry and use a hanging indent (the first line of each entry flush left, the rest indented), which is the standard look graders expect in both APA and MLA formatting.

Want the full walkthrough with screenshots and common mistakes? Read our step-by-step guide: how to cite a website in APA and MLA. And if you are unsure whether something needs a citation at all, our plagiarism guide explains which sources must always be cited.

In-text citations: the other half of every source

The generator builds your reference list, but every entry needs a matching citation inside the paper — and each style does it differently. In APA 7 you use the author and year: Students who plan their study sessions score higher (Study Journal, 2026). If you quote directly from a webpage, add the paragraph number instead of a page: “Planning beats cramming” (Study Journal, 2026, para. 4). In MLA 9 there is no year — just the author in parentheses: Students who plan their study sessions score higher (Study Journal). In Harvard it looks like APA: Students who plan their study sessions score higher (Study Journal, 2026), adding a page or paragraph number for direct quotes.

The most common beginner mistake is citing only one side: a perfect reference list with no in-text citations, or in-text mentions with no matching reference entries. A grader checks both directions, so after you finish, read your paper once asking “where did this claim come from?” for every factual sentence. Direct quotes, paraphrased ideas, statistics and anyone else’s conclusions all need citations; what you do not need to cite is common knowledge (“water boils at 100°C”) and your own analysis of the evidence.

One more habit that saves marks: never leave “n.d.” unexamined. If the year field keeps coming back as “no date,” the page often has a “last updated” line at the bottom you missed. And when two of your sources share an author and year, APA and Harvard add letters — (Study Journal, 2026a) and (Study Journal, 2026b) — matching the same letters in your reference list, so the reader can tell them apart.

Once the entries are generated, assembling the bibliography page takes three mechanical steps. First, alphabetize by the first word of each entry — the author’s surname in most cases, or the first word of the title when there is no author. Numbers sort before letters, so a source starting with “2026” goes at the top. Second, use a hanging indent: the first line of each entry sits flush left and every following line is indented half an inch. In Google Docs, highlight the list and choose Format > Align & indent > Indentation options > Special: Hanging; in Word it is Paragraph > Special: Hanging. Third, verify every URL by clicking it — a copied link with a missing character is the most common reason citations look sloppy, and graders do check. When a source offers a DOI (a permanent ID starting with 10.), prefer it over the raw URL: it never breaks.

How to cite ChatGPT and other AI tools

A question that did not exist a few years ago now shows up on every citation guide: how do you cite ChatGPT in APA and MLA? Both major style guides have answered it, and the format treats the AI tool as the author. Here is the standard form for each style:

Three things matter more than the punctuation. First, check whether your school or professor allows AI use at all — many require you to disclose AI assistance, and some treat undeclared AI text as academic misconduct regardless of how neatly you cite it. Second, quote the exact prompt and version in your paper or appendix, because AI outputs are not reproducible: the same prompt gives a different answer tomorrow, and a citation is supposed to let the reader retrieve the source. Third, do not cite AI-generated text as a fact source. Cite it only for the ideas or wording it produced — the underlying facts still need citations to real, verifiable sources.

Want the full guide — exact APA and MLA formats, in-text citations, prompt documentation, and what to do when your school bans AI tools entirely? Read our guide to citing ChatGPT and AI tools in APA and MLA.

A finished APA website citation “ APA 7 website citation AsanTool. (2026). What is GPA and how is it calculated? asantool.online/blog/what-is-gpa
A finished citation, ready to paste into a reference list — author, date, title and source in the right order and punctuation for the style you chose.

Citing books, journal articles and other sources

Websites are the most common student source, but essays also cite books, journal articles, chapters and reports — and each type has its own template. The building blocks stay the same (author, year, title, publisher or journal), but the order and punctuation change, so copying a website format onto a book is one of the easiest marks to lose. Here are the book and journal templates for the two styles students use most:

Three details trip students up most often. First, edition numbers: if a book is a second or later edition, add it after the title — (2nd ed.) in APA, 2nd ed. in MLA — because page numbers differ between editions. Second, edited books: when you cite a single chapter, credit the chapter author, then add “In” followed by the editor’s name and the book title, because the chapter and the book have different authors. Third, e-books: cite them exactly like the print book, unless the e-book has no stable page numbers — then APA uses paragraph numbers or section headings for in-text quotes, just as with webpages.

Our step-by-step guide to citing a book in APA and MLA walks through printed books, e-books, edited volumes and books with no author, with a full worked example in each style. And when you are ready to format, our annotated bibliography guide shows how to add the short summary paragraph many lecturers ask for after each entry.

Citing YouTube videos and social media posts

Videos are now a normal source in student essays — a lecture clip, a documentary excerpt, or an expert explaining a concept on camera. The rules are the same as for any source, but the “author” is usually a channel name and the date is the upload date. Here is how the same video looks in each style:

Two details cause most lost marks. First, use the real channel name, not the video's subject: the author is whoever published the video, even if the person speaking on camera is someone else. Second, link to the exact video, not the channel homepage — a grader should land on the video you watched with one click, not have to search for it.

Social media posts follow the same pattern: author (or username), date, the first 20 words of the post as the title in APA, and the platform. Want the full walkthrough — timestamps for quotes, missing-author cases and in-text citations? Read our guide to citing a YouTube video in APA and MLA.

7 citation mistakes that cost students marks

Most citation errors are not about punctuation — they are small habits that make a bibliography look careless. Fix these seven and your reference list will look like it was checked by someone who knows the style guide:

  1. Copying the URL from the address bar without checking it. Search-result and tracking links add extra characters that break the address. Open the source, copy the clean URL, and click it once before you submit — a dead link is the first thing a grader notices.
  2. Using the wrong title case. APA uses sentence case for article and book titles (only the first word and proper nouns capitalised); MLA uses title case (most words capitalised). Run titles through our case converter if you are unsure which one your style wants.
  3. Forgetting the in-text citation. A perfect reference list earns nothing if the body of your essay never points to it. Every factual claim needs its matching (Author, Year) or (Author page) note in the text — see the in-text section above.
  4. Citing a source you never opened. If you found a quote inside another author's paper, cite the paper you actually read, or find the original. Second-hand citations are the fastest way to inherit someone else's error.
  5. Leaving the DOI out of journal citations. A DOI (a permanent ID starting with 10.) never breaks the way URLs do, and APA expects it whenever one exists. If the article page shows a DOI, use it instead of the raw link.
  6. Listing sources in the order you used them. Reference lists are alphabetical by the first word of each entry — author surname, or the first word of the title when there is no author. A list in reading order looks unfinished.
  7. Citing podcasts, videos and AI tools like websites. Newer sources have their own formats: a podcast needs the host and the episode number, a video needs the channel and upload date, and AI output needs the model version. Our podcast citation guide covers the exact APA and MLA formats, and our plagiarism guide explains which of these sources must always be cited.

One final habit: proofread the reference list as its own document, not as an afterthought. Read each entry slowly, check every year and URL, and confirm the list is alphabetical. Ten minutes here saves more marks than ten minutes anywhere else in the paper — and if your essay is still over the word limit after the fixes, our word counter will tell you exactly how much to cut.

Citation Generator FAQs

Which citation styles are supported?

APA 7th edition, MLA 9th edition and Harvard referencing, for website and online article sources.

Can I use the citation for my final paper?

Treat it as a first draft. Citation rules vary by institution, source type and lecturer, so check the output against your official style guide before submitting.

What if a source has no author or date?

Use the organisation or website name as the author where appropriate, and omit or mark the date as unavailable according to your style guide's rules for missing information.

How do I cite a source with multiple authors?

List every author up to the style's limit — two authors in all three styles — then use “et al.” after the first name for three or more authors (APA 7 always uses et al. for 3+; MLA 9 uses et al. for 3+ as well). The generator treats the author field as one entry, so type multiple authors as “Smith, J., & Lee, A.” for APA or “Smith, Jordan, and Alex Lee” for MLA before generating.

How do I cite ChatGPT in APA or MLA?

Treat the AI tool as the author. In APA 7: OpenAI. (2026). ChatGPT (version) [Large language model]. https://chat.openai.com/chat. In MLA 9, your prompt becomes the title: “your prompt text” prompt. ChatGPT, version, OpenAI, date, URL. Always check your school's AI policy first — many require you to disclose AI use. Our full AI citation guide covers both styles with examples.

Is my entered information stored?

No. The citation is generated in your browser and nothing you enter is uploaded or saved.

Does the generator handle books and journal articles?

This version is built for websites and online articles — that is the most common source students cite. For books, journal articles, videos and interviews, use the website fields as a template but check your style guide for the exact format, since each source type has its own rules.

How do I cite a book in APA or MLA?

APA 7: Author, A. A. (Year). Title of book. Publisher. MLA 9: Author. Title of Book. Publisher, Year. Note the differences: APA uses initials and sentence case for the title, while MLA uses the full first name and title case. Our book citation guide covers printed books, e-books and edited volumes with worked examples.

How do I cite a journal article?

Include the author, year, article title, journal name, volume, issue and page range, and add the DOI (a permanent ID starting with 10.) whenever one exists — it replaces the URL because it never breaks. In APA the journal title and volume are italicised; in MLA the article title goes in quotation marks and the volume and issue are written as vol. X, no. Y.

How do I cite a YouTube video?

Use the channel name as the author and the upload date as the date. APA 7: Channel Name. (Year, Month Day). Video title [Video]. YouTube. URL. MLA 9: “Video Title.” YouTube, uploaded by Channel Name, Day Month Year, URL. Our YouTube citation guide covers timestamps, missing authors and in-text citations.

How do I cite a social media post?

Credit the account name, the post date, and the first 20 words of the post as the title (APA), plus the platform and URL. For example, APA: Author. (Year, Month Day). First 20 words of the post [Post]. Platform. URL. If the account uses a screen name, include both the real name and the @username where your style guide asks for it.

How do I cite a podcast?

Use the host as the author, the episode title, the podcast name, and the episode number and date. APA 7: Host, A. A. (Host). (Year, Month Day). Episode title (No. X) [Audio podcast episode]. In Podcast Name. Publisher. URL. MLA 9: “Episode Title.” Podcast Name, hosted by Host Name, episode X, Publisher, Day Month Year, URL. Our podcast citation guide has worked examples for both styles.

What is a DOI and when do I use it?

A DOI (Digital Object Identifier) is a permanent ID for a published work, usually starting with 10. and printed on the article page. Use it instead of a URL for journal articles whenever one exists — it never breaks, even if the journal moves its website. In APA the DOI goes at the end of the entry as https://doi.org/xx.xxxx; in MLA it goes at the end as doi:xx.xxxx.

Is the generator free?

Yes — no sign-up and no limits on how many citations you generate.

Copied