Citation Generator (APA, MLA, Chicago, Harvard)
Operator: Abdulla Al Fahad. How tools are built and checked
A reference list is mostly small rules applied in the right order: who comes first, whether the year sits in brackets or after a comma, which words get capitals, and where the italics go. This generator applies those rules for four styles, APA 7, MLA 9, Chicago 17 author-date and Harvard as Cite Them Right sets it out. You enter a source or import a BibTeX or RIS file, and get the list, the in-text citations and a copy you can paste into a document or download as Word.
Everything runs in this browser tab. The sources you type or import, including unpublished thesis titles and author names, are not uploaded anywhere.
Key features
- Six source types with the fields each style asks for
- Four styles: APA 7, MLA 9, Chicago 17 author-date and Harvard (Cite Them Right)
- Import of BibTeX and RIS, with a per-entry report of anything that was skipped
- In-text citations, parenthetical and narrative, with a and b suffixes when two sources share an author and year
- Preview with italics, Copy as rich text with a plain-text fallback, and downloads as Word, .bib and .ris
- Reference list sorted by the first author, then year and title, with hanging indents
Source types, name order and the four styles
Six source types are supported: book, chapter in an edited book, journal article, web page, report and thesis or dissertation. Each has its own fields. The author list takes people or organisations, one per row. The date accepts a year (2020), a year and month (2020-05), or a full date (17 May 2020). Titles keep any words wrapped in {braces}, so {NASA} stays in capitals in every style.
The Accessed date is used by MLA, Chicago and Harvard for online sources. APA 7 does not ask for an access date unless the content may change, so the generator leaves it out of APA entries.
Imports read BibTeX with braces or quotes around field values, @string macros, the # operator, month macros such as jan, names joined with and, organisations written in double braces, and LaTeX accents such as {\'e} or \"u, which become é and ü. RIS reads the common tags: TY, AU, A1, ED, A2, TI, T1, T2, JO, JF, BT, PY, DA, VL, IS, SP, EP, PB, CY, ET, DO, UR, Y2, M1 and M3, with ER ending each record. A line that does not start with a tag is joined to the value above it.
Entries that cannot be read are listed under the import with the reason: an unsupported type, a missing title, unbalanced braces or an unclosed quote. The rest of the file is still imported. A BibTeX @misc with a URL becomes a web page; without one it becomes a book.
How it works
Each name is split into a family name and given names. In APA the list is Family, I. I., so Smith, John Ronald becomes Smith, J. R., and two authors are joined with a comma and an ampersand. MLA names the first author in full and the others first-name first. Chicago gives full names, and Harvard joins initials without spaces: Smith, J.R.
Titles are changed to the case each style wants. APA and Harvard use sentence case: the first word and the first word after a colon stay capitalised, and every other word is lower case, except acronyms such as DNA, a standalone I, and words in {braces}, which keep their case. So The Art of Teaching becomes The art of teaching, and Why? Lessons becomes Why? lessons. A title typed entirely in capitals is lower-cased in full, so an acronym in such a title needs braces, as in {DNA}. MLA and Chicago use title case, lowering articles, short prepositions and coordinating conjunctions except at the start, after a colon and at the end.
The author list is cut where each style cuts it. APA lists up to 20 names; from 21 it shows the first 19, an ellipsis and the last name. MLA and Chicago add et al. after the first author from three (MLA) or from eleven (Chicago, which lists the first seven). In text, APA says et al. from three authors, Chicago and Harvard from four, and MLA from three. MLA also shortens the title in its in-text citation when one author wrote two of the sources in the list, so (Doe, Book One 23) tells them apart; APA, Chicago and Harvard use letters instead.
Entries sort by the first author's family name. APA, Chicago and Harvard then sort by year and title, with a leading A, An or The ignored in the title. APA 7, MLA 9 and Chicago 17 each ignore the article when a title is alphabetised, and the generator applies the same rule in all four styles. MLA 9 sorts entries by the same author by title and does not use the year. Two APA, Chicago or Harvard entries whose in-text citations would read the same, such as the same first author and year, take a and b in title order, and the in-text citations use the same letters, so (Doe, 2020a) and (Doe, 2020b) point at the right item.
Typical uses
- A psychology essay that needs APA 7 entries and the (Author, year) citations in the text
- A history dissertation chapter in Chicago author-date, with several edited-book chapters
- A marketing report in Harvard for a module that asks for Cite Them Right, from a list exported by a reference manager
- Converting a BibTeX file from a LaTeX thesis into an MLA works-cited list for a humanities course
- Checking that a web page and its access date are formatted the way a particular style expects before submitting
Building one
- Choose a style at the top of the list, then fill in the source form: the source type, the author rows, the date and the title.
- Add the container (journal, book title, website name), volume, issue and pages where the source type shows them, and the publisher, place and edition for books.
- Paste a DOI or a URL. A DOI is shown as https://doi.org/ followed by the number, whichever form you type.
- Press Add to list and repeat for each source. Edit or remove a source from the list below the preview.
- Copy the list, or download it as .docx, .bib or .ris. Use the in-text table for the citations to write in your text.
Example
A journal article with four authors and a DOI, in APA 7 and Harvard
Type Journal article
Authors Doe, Jane; Lee, K.; Brown, R.; Green, P.
Date 2020-01
Title Café effects on {NASA} budgets
Container Journal of Things
Volume/issue 12 / 3
Pages 45-67
DOI 10.1000/xyz123APA 7 entry and citation
APA 7 entry: Doe, J., Lee, K., Brown, R., & Green, P. (2020). Café effects on NASA budgets. Journal of Things, 12(3), 45–67. https://doi.org/10.1000/xyz123
APA 7 citation: (Doe et al., 2020)
Harvard entry: Doe, J. et al. (2020) 'Café effects on NASA budgets', Journal of Things, 12(3), pp. 45–67. Available at: https://doi.org/10.1000/xyz123.
Harvard citation: (Doe et al., 2020)Tips for best results
- Wrap a proper noun in braces when you type a title in APA or Harvard, for example {Mozart}. A title typed in title case, such as The Mozart Effect, would otherwise come out as “The mozart effect”. Acronyms such as NASA and words with a capital inside them, such as iPhone, are kept without braces.
- Leave the organisation rows in the author list blank for people, and use the Organisation option for a report written by a body such as a government agency. The organisation name then appears in the author position, as APA and Harvard require.
- Check the reference list against the style guide's own examples for a rare source type, such as a conference paper or a dataset. Those are not in this generator, so enter them as a report or a book and adjust the text by hand.
- If you use the same source in two styles, switch the style rather than entering it twice; the list, in-text table and downloads all follow the style you picked.
Things to check before you rely on it
The generator follows the rules described above, not the full text of each guide. Unusual cases, such as a corporate author with a numbered series or a multi-volume book with a volume title, may need a manual edit.
Page ranges are shown as you type them, with the hyphen turned into an en dash. Chicago 17 normally shortens page ranges, so 125–129 becomes 125–29. This generator writes ranges in full, so a Chicago journal entry shows 263–291 rather than 263–91.
Best practices
- Export the references from your reference manager as BibTeX or RIS rather than copying fields by hand, which keeps the DOI and the author order exact.
- Read each entry once before you submit it. Authors, year and title matter most, and a small error in one of them is easy to miss in a long list.
- Keep the file you imported. The generator does not store your list, so the .bib or .ris download is the safe copy if you return later.
What the generator cannot do
It does not look sources up. Nothing is searched for on the web or in a library catalogue, so you need to type the title, authors, year and DOI yourself or import them. It does not check that a DOI or URL is live, and it does not read PDFs to pull out the details.
It handles the six source types above. A conference paper, a dataset, a film, a legal case, a court document or a social media post is not one of them. Enter it as the nearest type and edit the output, or use the style guide's own examples as the model.
It does not manage citations inside a document. The in-text table gives the text for each source, but it does not renumber a list or update citations when you change a source later.
Where your list goes (nowhere)
The list lives in this page's memory and nowhere else. The generator writes nothing to localStorage, cookies or the server, so a reload clears the list, and an imported .bib or .ris file is read into the list; the file itself is not kept. The .docx, .bib and .ris downloads are built from the same in-memory list when you click them. If you want the list again later, download the .bib or .ris file and import it on your next visit.
Frequently asked questions
Why does my APA entry have no access date?
APA 7 asks for a retrieval date only when the page's content may have changed since you read it, and this generator does not make that judgement for you. Other styles use the Accessed date field when you fill it in.
Why are some words in my title lower case in MLA when I typed them capitalised?
MLA and Chicago title case lowers articles, short prepositions and coordinating conjunctions unless they open the title, follow a colon or end it. Wrap a word in braces to keep it as typed.
Why are two of my entries labelled 2020a and 2020b?
Their in-text citations would read the same, for example the same first author and year. APA, Chicago and Harvard add a letter so the citation can point to one of them. Sources are lettered in title order.
Will a BibTeX file from my reference manager import correctly?
Most exports do. Entries whose type is not supported, or that have no title, are listed under the import with the reason, and the rest of the file is still imported.