← All tools/Generators/Text/Citation Generator

Citation Generator

A book or website citation in APA or MLA style — type the details, copy the result.

Your citation — selected style

—

APA 7th

MLA 9th

Fields filledFields missing

Formats only what you enter — missing fields are left out and flagged above. Always check your institution’s style guide before submitting.

How it works

APA 7th, book: Author, A. A. (Year). Title. Publisher.
APA 7th, website: Author, A. A. (Year, Month Day). Title. Site Name. URL.
MLA 9th, book: Author. Title. Publisher, Year.
MLA 9th, website: Author. “Title.” Site Name, Date, URL.

The generator fills a fixed pattern for each style; it never invents anything. In APA 7th the author comes first, then the year in brackets, then the title in sentence case, then the publisher or site name, then the URL for a website. In MLA 9th the author comes first with a full stop, then the title in quotation marks, then the publisher or site name, then the date and the URL. For a website the date field holds the full publication date — “12 March 2021” — and APA uses that date inside the brackets while MLA lists it after the site name. If the author is missing, the citation starts with the title instead; if there is no year, APA uses (n.d.) and MLA leaves the date out. The method covers books and ordinary web pages, which is what most college assignments need. It does not cover journal articles with DOIs, edited volumes, chapters in a book, or sources with three or more authors — for those, check your institution’s style guide before submitting.

Worked example: author “Sharma, R.”, title “The Art of Cooking”, year 2023, publisher “Penguin Books”. APA 7th gives: Sharma, R. (2023). The Art of Cooking. Penguin Books. MLA 9th gives: Sharma, R. The Art of Cooking. Penguin Books, 2023.

Second worked example: a website — author “Iyer, S.”, title “Indian Railways: A History”, site name “RailHistory.in”, date published “12 March 2021”, year 2021, URL “https://railhistory.in/indian-railways-history”. APA 7th gives: Iyer, S. (2021, March 12). Indian Railways: A History. RailHistory.in. https://railhistory.in/indian-railways-history. MLA 9th gives: Iyer, S. “Indian Railways: A History.” RailHistory.in, 12 March 2021, https://railhistory.in/indian-railways-history. Notice the same facts in a different order: APA puts the date in brackets right after the author, while MLA puts the title in quotes first and the date after the site name.

Common mistakes when writing citations

Five mistakes cost students marks more than any other. First, mixing the two styles in one bibliography — APA in one entry and MLA in the next. Pick the style your college asks for and use it for every entry. Second, citing the search engine instead of the source: the author is the person or organisation that wrote the page, not Google. Third, leaving the author blank when the site name is right there — use the organisation or site name as the author rather than starting with the title. Fourth, copying the URL from the address bar with tracking text attached; paste the clean link, without anything after a “?” that is not part of the page address. Fifth, trusting the generator blindly on edge cases. It formats exactly what you type into the standard patterns, but edited books, journal articles with DOIs and sources with several authors have rules this page does not cover — check those against your style guide before you submit.

Frequently asked questions

Which style should I use?

Use the one your teacher or institution asks for. APA 7th is common in the social sciences, education and psychology; MLA 9th is common in the humanities, literature and language studies. Indian colleges usually name the style in the assignment brief or the department handbook. When in doubt, ask — a citation in the wrong style can lose marks even when every fact in it is right.

What if the author is missing?

Leave the author blank and the citation starts with the title instead (APA) or the title comes first (MLA). The generator flags the missing field so you know it was left out on purpose. Before doing that, check whether an organisation or site name can stand as the author — most pages have one, and a named author is always better than none.

What if there is no publication date?

For APA use (n.d.) in place of the year; for MLA leave the date out. Enter “n.d.” in the year field here to get that. A page with no date at all is common for older reference pages, but if the page is a news article or a blog post, look again — the date is usually near the headline or at the bottom.

How do I cite a page with no author?

Use the organisation or site name as the author — for example, the name of the newspaper, university or government department that published the page. If there is genuinely no author and no organisation, start with the title — do not invent one. Never put the search engine or the website’s domain owner in the author’s place.

Is this citation guaranteed correct?

It formats exactly what you type into the standard patterns, but style guides have edge cases (editors, editions, DOIs) that this page does not cover. A typing mistake in the author’s name or the year goes straight into the citation, so read the result once before you paste it. Always check your institution’s style guide before submitting.

More tools

Tell us what you think

Loving this tool, or stuck on something? Tell us — it takes a minute.

We’ll only use your name and email to reply if needed. The tool and page are filled in for you.