Menu
Advertisement

MLA Citation Generator and Works Cited Generator

Fill in a book, journal article, website or YouTube video, or look it up by DOI or ISBN, and get the MLA 9 works-cited entry with its in-text citation. Add every source and copy your Works Cited list.

By Nethanel Bar, Co-founder & CEO

Last updated

Advertisement

Ready to actually learn to code?

Coddy teaches you by writing real code in your browser - interactive lessons, instant feedback, and AI help when you get stuck.

How to write an MLA citation

MLA style comes from the MLA Handbook, 9th edition (2021), and every entry follows its template of core elements: Author. Title of source. Title of container, Contributor, Version, Number, Publisher, Publication date, Location. A period follows the author, the title and the container; commas separate the elements inside it. A book stands on its own, so its edition, publisher and year follow the title. An article sits in a journal, a page on a website and a video on YouTube: those are the containers.

English titles are in title case, and the generator does that for you: every major word gets a capital, while articles, prepositions and conjunctions stay lowercase unless they start the title or the subtitle. Books and containers are italic; articles, web pages and videos go in quotation marks, with the period inside. Months are shortened except May, June and July (23 Mar. 2019), a web address drops its https://, and a DOI is written as a https://doi.org/ link.

The in-text citation is the author's last name and the page, with no comma: (Mantel 45), (Dorris and Erdrich 12), (Grady et al. 210). A source with no author is cited by the start of its title, up to the end of its first noun phrase, in quotation marks or italics: (“Why”) for “Why Big Tech Should Fear Europe” and (“Soft Robotic Gripper”) for a video called “Soft Robotic Gripper for Jellyfish.” Add each source to the list for your Works Cited page: entries are alphabetical by their first word, ignoring A, An and The, and a second work by the same author starts with three hyphens.

What you will learn from MLA 9

  • MLA builds every entry from the same core elements, so a source with no ready-made pattern can still be cited: fill in the elements it has and leave out the rest.
  • Two authors are written as Dorris, Michael, and Louise Erdrich: only the first author's name is reversed. Three or more become the first author and et al.
  • MLA cites a page, not a year, in the text, because the year is already in the works-cited entry at the end.
  • Dates read day, month, year, with every month but May, June and July shortened. The Python example below writes them that way.

How to use the MLA citation generator

  1. Choose the source type

    Book, Journal article, Web page or Online video. An ISBN fills in a book and a DOI an article when you press Look up; check every field it fills.

  2. Enter the authors

    One row per author: the first and middle names, then the last name. Leave the author empty for a source with no author, and the entry starts with the title.

  3. Type the title

    Type or paste it in lowercase, sentence case or title case; an English title is set in title case for you. The website, the journal or YouTube goes in its own field, not in the title.

  4. Add the date, the page and the details

    The date the work was published, the journal's volume, issue and pages, or the web address. Add the page you quote so the in-text citation shows it.

  5. Build your Works Cited list

    Press Add to list for each source. The list is alphabetical, and Copy all pastes it with the italics and a 0.5-inch hanging indent.

MLA 9 format by source type

The patterns the generator follows. Italic in MLA, which a table cannot show: book titles and every container (journal, website, YouTube).

SourceWorks-cited entryIn-text citation
BookLast, First. Title of the Book: Subtitle. 2nd ed., Publisher, Year.(Last page)
Book by two authorsLast, First, and First Last. Title of the Book. Publisher, Year.(Last and Last page)
Journal articleLast, First. “Title of the Article.” Journal Name, vol. Volume, no. Issue, Year, pp. pages, https://doi.org/....(Last page)
Three or more authorsLast, First, et al. “Title of the Article.” ...(Last et al. page)
Web pageLast, First. “Title of the Page.” Website Name, Day Mon. Year, www.example.com/page.(Last)
Web page with no author“Title of the Page.” Website Name, Day Mon. Year, www.example.com/page.(“Short Title”)
Web page with no dateLast, First. “Title of the Page.” Website Name, www.example.com/page. Accessed Day Mon. Year.(Last)
YouTube video“Title of the Video.” YouTube, uploaded by Channel, Day Mon. Year, www.youtube.com/watch?v=....(“Short Title”)

MLA citation examples

A novel

Works-cited entry and in-text citation

Mantel, Hilary. Wolf Hall. Picador, 2010. (Mantel 45)

The MLA Style Center's own example, with 45 as the page cited. The title is italic; the publisher and the year close the entry, and the in-text citation has no comma between the name and the page.

A journal article with a DOI

Works-cited entry and in-text citation

Berman, Russell. “The Necessity of Language Learning.” ADFL Bulletin, vol. 43, no. 2, 2015, pp. 11-14, https://doi.org/10.1632/adfl.43.2.11. (Berman 12)

Typed as The necessity of language learning, the title comes out in title case and in quotation marks. The journal ADFL Bulletin is italic, and the DOI ends the entry as a link followed by a period.

A web article with no author

Works-cited entry and in-text citation

“Why Big Tech Should Fear Europe.” The Economist, 23 Mar. 2019, www.economist.com/leaders/2019/03/23/why-big-tech-should-fear-europe. (“Why”)

With no author the entry starts with the title, never with Anonymous, and the in-text citation uses the start of its title. The Economist is italic as the container, March becomes Mar., and the address loses its https://.

MLA dates in Python

Day, short month, year
MONTHS = ["Jan.", "Feb.", "Mar.", "Apr.", "May", "June",          "July", "Aug.", "Sept.", "Oct.", "Nov.", "Dec."]
def mla_date(year, month=None, day=None):    if not month:        return str(year)    if not day:        return f"{MONTHS[month - 1]} {year}"    return f"{day} {MONTHS[month - 1]} {year}"
print(mla_date(2019, 3, 23))print(mla_date(2008, 6, 18))print(mla_date(2013, 9, 20))print(mla_date(2010))
Output

23 Mar. 2019 18 June 2008 20 Sept. 2013 2010

September is shortened to Sept., not Sep., and June stays whole. The generator writes dates the same way, with only the year for a book.

Common MLA citation mistakes

  • Putting a comma in the in-text citation. It is (Mantel 45), not (Mantel, 45) or (Mantel, p. 45).
  • Starting an entry with Anonymous. A source with no author starts with its title.
  • Keeping https:// in a web address. MLA drops it from URLs, but a DOI keeps its https://doi.org/.
  • Writing every month in full. MLA shortens all months but May, June and July.
  • Alphabetizing by The or A. MLA skips an initial A, An or The, so a source with no author titled A Room with a View is filed under R.

MLA citation generator FAQ

How do I cite a book in MLA format?

Last name, first name, the title in italics, then the edition if it is not the first, the publisher and the year: Mantel, Hilary. Wolf Hall. Picador, 2010. MLA leaves out the city of publication.

How do I cite a website in MLA 9?

The author, the page title in quotation marks, the website in italics, the date and the address without https://. With no author the entry starts with the title, and an organization that is also the website or the publisher is not repeated as the author. With no date, the date you accessed the page closes the entry: Accessed 8 Mar. 2022.

How do I cite a YouTube video in MLA?

When the channel is not clearly the video's creator, leave the author empty and put the channel in Channel or uploader: “Soft Robotic Gripper for Jellyfish.” YouTube, uploaded by Harvard University, 28 Aug. 2019. When a person made the video, put that person in the author row.

How do I write an MLA in-text citation?

The author's last name and the page in parentheses with no comma: (Mantel 45). Two authors are joined with and, three or more are the first author and et al., and a web page with no page numbers takes the name alone.

What is a container in MLA?

The larger work a source sits in: the journal an article appeared in, the website a page is on, YouTube for a video. The container is italic and its details, such as the volume, issue and date, follow it, separated by commas.

How do I cite a source with no author in MLA?

Start the entry with the title, and cite it in the text by the start of the title, up to its first noun phrase, in quotation marks: (“Why”) for “Why Big Tech Should Fear Europe” and (“Capybara Eat Huge Pumpkin”) for the video of that name. If two of your sources start the same way, lengthen one by hand.

How do I format the Works Cited page?

Title it Works Cited and center the title, list the entries alphabetically, double-spaced, with a 0.5-inch hanging indent. Copy all pastes the entries in order with the hanging indent; set the double spacing in your document.

Does the generator write title case for me?

Yes, for English titles. Type the title in lowercase, sentence case or title case and MLA's title case is applied: major words get a capital, and articles, prepositions and conjunctions stay lowercase unless they start the title or the subtitle.

Other developer tools

Coddy programming languages illustration

Learn to code with Coddy

Get started