Menu
Advertisement

Citation Generator: APA 7, MLA 9 and Chicago 18

Pick APA, MLA or Chicago, choose the source type and fill in the fields, or look up a DOI or ISBN. You get the full citation and the in-text citation, and the list you build changes style in one click.

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 cite a source in APA, MLA or Chicago

A citation has two parts: the full entry in the list at the end of your paper, and a short citation in the text that points to it. This generator writes both in three styles: APA 7 (the Publication Manual of the American Psychological Association, 2020), MLA 9 (the MLA Handbook, 2021) and Chicago 18 (the Chicago Manual of Style, 2024), with Chicago's notes and bibliography or its author-date system. Your syllabus names the style; APA is common in psychology and education, MLA in English classes and Chicago in history.

Choose the style and the source type, then fill in the fields: the authors (or an organization), the title, the date and what the type needs, such as the journal, volume, issue and pages of an article. A DOI fills in a journal article from Crossref and an ISBN fills in a book from Open Library. Only the number you typed is sent, and you check every field before you add the source, because library records are not always right: Open Library sometimes lists an editor as an author. The full citation and the in-text citation update as you type, each with its own copy button.

Press Add to list for each source. The list is sorted the way the style sorts it, and switching the style rewrites every entry, so one list can serve an APA paper and an MLA one. Copy all copies the list with its italics and a 0.5-inch hanging indent, ready to paste into a word processor; Copy as plain text leaves the formatting out. Nothing is saved: the list stays while you move between this page and the APA, MLA and Chicago pages, and a reload empties it.

What you will learn about citation styles

  • Every style answers the same questions: who wrote it, when, what it is called and where it was published. APA puts the year right after the author; MLA and a Chicago bibliography put it near the end.
  • APA writes titles in sentence case, with capitals only on the first word, the first word after a colon and proper nouns. MLA and Chicago write English titles in title case, which the generator applies for you; an APA title has to be typed in sentence case.
  • The in-text citation changes with the style: (Yu, 2020, p. 45) in APA, (Yu 45) in MLA and (Yu 2020, 45) in Chicago author-date.
  • Three or more authors become et al. in the text in all three styles, while the list at the end names more of them: up to 20 in APA and up to 6 in a Chicago bibliography.

How to use the citation generator

  1. Pick the style

    APA 7, MLA 9, Chicago 18 (notes and bibliography) or Chicago 18 (author-date). Use the one your teacher or syllabus names.

  2. Choose the source type

    Book, Journal article, Web page or Online video. The form shows the fields that type needs in the style you picked.

  3. Look it up or fill it in

    Type a DOI for an article or an ISBN for a book and press Look up, then check every field. Or type the details yourself: one row per author, or switch on The author is an organization.

  4. Copy it or add it to the list

    Copy the full citation and the in-text citation, or press Add to list. Edit loads an entry back into the form and Remove takes it off the list.

  5. Copy the whole list

    Copy all keeps the italics and the hanging indent for your word processor; Copy as plain text gives the same entries without formatting.

How each source type is written in APA, MLA and Chicago

The patterns the generator follows for a list entry. A table cannot show italics: the book title is italic in every style, the journal name too (and its volume in APA), the web page and video titles in APA, and the website name and YouTube in MLA.

SourceAPA 7MLA 9Chicago 18 bibliography
BookLast, F. M. (Year). Title of the book: Subtitle (2nd ed.). Publisher.Last, First. Title of the Book: Subtitle. 2nd ed., Publisher, Year.Last, First. Title of the Book: Subtitle. 2nd ed. Publisher, Year.
Journal articleLast, F. M. (Year). Title of the article. Journal Name, Volume(Issue), pages. https://doi.org/...Last, First. “Title of the Article.” Journal Name, vol. Volume, no. Issue, Year, pp. pages, https://doi.org/....Last, First. “Title of the Article.” Journal Name Volume, no. Issue (Year): pages. https://doi.org/....
Web pageLast, F. M. (Year, Month Day). Title of the page. Site Name. URLLast, First. “Title of the Page.” Site Name, Day Mon. Year, URL without https://.Last, First. “Title of the Page.” Site Name, Month Day, Year. URL.
Online videoChannel. (Year, Month Day). Title of the video [Video]. YouTube. URL“Title of the Video.” YouTube, uploaded by Channel, Day Mon. Year, URL without https://.“Title of the Video.” Posted Month Day, Year, by Channel. YouTube. URL.

Citation generator examples

One book in four styles

APA 7: reference, parenthetical, narrative

Yu, C. (2020). Interior Chinatown. Pantheon Books. (Yu, 2020, p. 45) Yu (2020, p. 45)

MLA 9: works-cited entry, in-text citation

Yu, Charles. Interior Chinatown. Pantheon Books, 2020. (Yu 45)

Chicago 18 notes and bibliography: bibliography, footnote, short footnote

Yu, Charles. Interior Chinatown. Pantheon Books, 2020. Charles Yu, Interior Chinatown (Pantheon Books, 2020), 45. Yu, Interior Chinatown, 45.

Chicago 18 author-date: reference, in-text citation

Yu, Charles. 2020. Interior Chinatown. Pantheon Books. (Yu 2020, 45)

Charles Yu's novel Interior Chinatown (Pantheon Books, 2020), the book the Chicago Manual's own citation guide uses, with page 45 as the page cited. The title is italic in every entry. APA gives only initials and puts the year after the name; MLA and Chicago spell out the first name and end with the publisher and the year.

A journal article with a DOI

APA 7

Kwon, H. (2022). Inclusion work: Children of immigrants claiming membership in everyday life. American Journal of Sociology, 127(6), 1818–1859. https://doi.org/10.1086/720277 (Kwon, 2022) Kwon (2022)

MLA 9

Kwon, Hyeyoung. “Inclusion Work: Children of Immigrants Claiming Membership in Everyday Life.” American Journal of Sociology, vol. 127, no. 6, 2022, pp. 1818-59, https://doi.org/10.1086/720277. (Kwon)

Chicago 18 notes and bibliography

Kwon, Hyeyoung. “Inclusion Work: Children of Immigrants Claiming Membership in Everyday Life.” American Journal of Sociology 127, no. 6 (2022): 1818–59. https://doi.org/10.1086/720277. Hyeyoung Kwon, “Inclusion Work: Children of Immigrants Claiming Membership in Everyday Life,” American Journal of Sociology 127, no. 6 (2022): 1818–59, https://doi.org/10.1086/720277. Kwon, “Inclusion Work.”

The same article, typed once with its title in sentence case for APA. MLA and Chicago turn the title into title case and put it in quotation marks; APA leaves it plain and italicizes the journal name and the volume. MLA and Chicago shorten the last page number. Type the page you quote in Page or time cited and the footnote and the short footnote end with that page instead.

A YouTube video

APA 7

Harvard University. (2019, August 28). Soft robotic gripper for jellyfish [Video]. YouTube. https://www.youtube.com/watch?v=guRoWTYfxMs (Harvard University, 2019) Harvard University (2019)

MLA 9

“Soft Robotic Gripper for Jellyfish.” YouTube, uploaded by Harvard University, 28 Aug. 2019, www.youtube.com/watch?v=guRoWTYfxMs. (“Soft Robotic Gripper”)

Chicago 18 notes and bibliography

“Soft Robotic Gripper for Jellyfish.” Posted August 28, 2019, by Harvard University. YouTube. https://www.youtube.com/watch?v=guRoWTYfxMs. “Soft Robotic Gripper for Jellyfish,” posted August 28, 2019, by Harvard University, YouTube, https://www.youtube.com/watch?v=guRoWTYfxMs. “Soft Robotic Gripper.”

A video from APA's own examples, with Harvard University in Channel or uploader and no author. APA treats the channel as the author and adds [Video]. MLA and Chicago start with the title and name the account that posted it; MLA drops https:// from the address and cites the video in the text by its title's first phrase.

In-text citations in Python

Author, year and page in three styles
def in_text(last_names, year, page, style):    if len(last_names) >= 3:        who = last_names[0] + " et al."    elif style == "apa":        who = " & ".join(last_names)    else:        who = " and ".join(last_names)    if style == "apa":        return f"({who}, {year}, p. {page})"    if style == "mla":        return f"({who} {page})"    return f"({who} {year}, {page})"  # Chicago author-date
for style in ("apa", "mla", "chicago"):    print(in_text(["Yu"], 2020, 45, style),          in_text(["Dorris", "Erdrich"], 1999, 12, style),          in_text(["Grady", "Her", "Moreno", "Perez", "Yelinek"], 2019, 210, style))
Output

(Yu, 2020, p. 45) (Dorris & Erdrich, 1999, p. 12) (Grady et al., 2019, p. 210) (Yu 45) (Dorris and Erdrich 12) (Grady et al. 210) (Yu 2020, 45) (Dorris and Erdrich 1999, 12) (Grady et al. 2019, 210)

One, two and five authors in each style. These are the citations the generator writes for the same three sources, with pages 45, 12 and 210 as the pages cited.

Common citation mistakes

  • Typing an APA title in Title Case. APA wants sentence case: press Sentence case, then capitalize proper nouns such as United States again by hand, because the button cannot tell them from ordinary words.
  • Adding a looked-up source without reading it. Library records can miss a subtitle, carry a typo or list an editor as an author; check every field first.
  • Putting the website's name in the title field. The title is the page's or the article's own title; the site's name goes in Website.
  • Mixing styles in one paper. Switch the style once and every entry in the list is rewritten to match.
  • Leaving a source out of the text. Every entry in the list needs a citation in the paper, and every citation in the paper needs an entry.

Citation generator FAQ

How do I cite a source with this generator?

Pick the style and the source type, fill in the fields or look up a DOI or ISBN, and copy the full citation and the in-text citation. Press Add to list to collect every source of your paper in one sorted list.

Which citation style should I use?

The one your teacher, syllabus or journal asks for. If no one says, APA is common in psychology and education, MLA in English and the humanities, and Chicago in history. Your teacher's or school's guide wins over any generator.

Can I switch my whole list from APA to MLA?

Yes. The list holds the sources, not the finished text, so picking another style rewrites every entry and its in-text citation. Check the titles afterwards: a title typed in sentence case for APA becomes title case in MLA, but a title typed in title case stays that way in APA.

How does the DOI and ISBN lookup work?

A DOI is sent to Crossref and an ISBN to Open Library, from your browser, and the answer fills in the form. Only the number you typed is sent. If nothing comes back within 8 seconds, or nothing is found, fill in the fields yourself.

What kinds of sources can I cite?

Books, journal articles, web pages and online videos such as YouTube. Chapters in an edited book, edited or translated books, theses, conference papers and database records are not built in.

Does the list paste with a hanging indent?

Yes. Copy all copies each entry with a 0.5-inch hanging indent and its italics, so a word processor keeps them when you paste. Copy as plain text drops both.

Is my list saved?

No. It stays while you move between the citation generator's pages in one visit, and a reload empties it. Copy the list into your paper before you leave.

Can I trust every citation it writes?

It follows the published rules of APA 7, MLA 9 and Chicago 18, but it writes what you give it, so a wrong field gives a wrong entry. Read each entry over, and when your teacher's or school's guide says something different, follow the guide.

Other developer tools

Coddy programming languages illustration

Learn to code with Coddy

Get started