induwara.lk
induwara.lkEducation · Referencing

Citation Generator — APA, MLA, IEEE, Harvard & Chicago

Build correctly formatted references and matching in-text citations in five university styles — APA 7th, MLA 9th, IEEE, Harvard and Chicago. Made for Sri Lankan students: fill in the fields, copy the entry, build a whole reference list. Runs in your browser, no signup, no ads.

By Induwara AshinsanaUpdated Jun 11, 2026
Build a citation
Authors
Try an example
Fill in at least a title to see your formatted reference and matching in-text citation here. Tap an example above to see it work instantly.

How it works

A citation has two halves that must always match: the in-text marker inside your sentence and the full entry in the reference list. This tool builds both from the same fields, so they can never drift apart. There is no maths and no network call — each style is a fixed template, and the generator substitutes your data into it exactly as the official manual specifies.

The work is in three deterministic steps:

  1. Author names are normalised per style. APA, Harvard and Chicago invert the first author to Surname, Initials; IEEE writes initials first (N. Perera); MLA spells the first author's given name in full. Each style has its own rule for many authors — IEEE and Harvard switch to et al. after three, while APA lists up to twenty before using an ellipsis.
  2. Titles and containers are punctuated. Article titles are quoted in IEEE and MLA; book and journal names are italicised in every style. Page ranges are rendered with an en dash (110–125), and a bare DOI is expanded into a https://doi.org/… link.
  3. The date is handled.A missing year prints "n.d." (APA) or "no date" (Harvard); MLA and Harvard append an Accesseddate for web pages. The parts are then assembled into the style template and the matching in-text citation is generated from the first author's surname and year, or — for IEEE — the source's position in your list.

Capitalisation of the title is preserved exactly as you type it. That is deliberate: auto-changing case is the single biggest source of wrong citations because it mangles proper nouns and acronyms (it would turn "Sri Lanka" into "sri lanka" or "DNA" into "dna"). Enter the title in the case your style requires — sentence case for APA and Chicago article titles, title case for MLA and IEEE — and the tool keeps it intact. To prove the templates are right, three full references reconciled by hand against the APA, IEEE and Harvard manuals are re-run through the engine on every page load; the badge on the calculator shows the result.

Worked examples

APA 7th — journal article

  • Authors: Perera, N. & Silva, K.
  • Year: 2023 · Title: Renewable energy adoption in Sri Lanka
  • Journal: Energy Policy · Vol 51, Issue 2 · Pages 110-125
  • DOI: 10.1016/j.enpol.2023.01.004

Reference

Perera, N., & Silva, K. (2023). Renewable energy adoption in Sri Lanka. Energy Policy, 51(2), 110–125. https://doi.org/10.1016/j.enpol.2023.01.004

In-text

(Perera & Silva, 2023)

IEEE — the same journal article

  • Authors: N. Perera and K. Silva (initials first)
  • Title in quotes, journal italicised, bracketed number
  • Vol 51, no. 2, pp. 110–125, 2023

Reference

[1] N. Perera and K. Silva, "Renewable energy adoption in Sri Lanka," Energy Policy, vol. 51, no. 2, pp. 110–125, 2023.

In-text

[1]

Harvard (Cite Them Right) — book

  • Author: Fernando, A. · Year: 2020
  • Title: Sri Lankan economic history · Edition: 2nd
  • Place: Colombo · Publisher: Sarasavi

Reference

Fernando, A. (2020) Sri Lankan economic history. 2nd edn. Colombo: Sarasavi.

In-text

(Fernando, 2020)

Frequently asked questions

Sources & references

Each style template was reconciled by hand against the cited manual on 2026-06-11. Style guides are revised periodically; this page is reviewed whenever a new edition of a manual is published.

Related tools

Rate this tool
Be the first to rate

Comments & feedback

Spotted a bug or want an improvement? Tell us — our team reviews every comment, and good ideas get built. Comments are public and anonymous.

Spotted a formatting bug or an edge case your faculty needs?

Email me at [email protected] — most fixes ship within 24 hours.