William Joshua Allen (June 9, 1829 – January 26, 1901), frequently known as W. J. Allen, was an American lawyer, jurist, and politician. He served as a United States representative from Illinois and a United States district judge of the United States District Court for the Southern District of Illinois.