The Edinburgh Festival Fringe draws to a close this weekend after a three-week run of comedy, arts and entertainment.

Thousands of performers have taken to stages of all sizes across Edinburgh since August 5, from big-name stars to emerging artists.

Shows have varied from comedy, dance and physical theatre to circus, cabaret, children’s shows, musicals and opera. There have been music concerts, spoken word perfromances and art exhibitions.

As the festival gears up for the finale, a panel of expert judges have been casting their eyes over some of the hottest one-liners of the festival and have now officially named their funniest joke.

Comedian Masai Graham has won the accolade for his witty joke about a donor card - see below.

15 funniest jokes of the Edinburgh Festival Fringe

1 “My dad has suggested that I register for a donor card. He’s a man after my own heart” - Masai Graham

2 “Why is it old people say “there’s no place like home”, yet when you put them in one…” - Stuart Mitchell

3 “I’ve been happily married for four years - out of a total of 10” - Mark Watson

4 “Apparently 1 in 3 Britons are conceived in an IKEA bed which is mad because those places are really well lit” - Mark Smith

5 “I went to a pub quiz in Liverpool, had a few drinks so wasn’t much use. Just for a laugh I wrote The Beatles or Steven Gerrard for every answer… came second” - Will Duggan

6 “Brexit is a terrible name, sounds like cereal you eat when you are constipated” - Tiff Stevenson

7 “I often confuse Americans and Canadians. By using long words” - Gary Delaney

8 “Why is Henry’s wife covered in tooth marks? Because he’s Tudor” - Adele Cliff

9 “Don’t you hate it when people assume you’re rich because you sound posh and went to private school and have loads of money?” - Annie McGrath

10 “Is it possible to mistake schizophrenia for telepathy, I hear you ask” - Jordan Brookes

11 “Hillary Clinton has shown that any woman can be President, as long as your husband did it first” - Michelle Wolf

12 “I spotted a Marmite van on the motorway. It was heading yeastbound” - Roger Swift

13 “Back in the day, Instagram just meant a really efficient drug dealer” - Arthur Smith

14 “I’ll tell you what’s unnatural in the eyes of God. Contact lenses” - Zoe Lyons

15 “Elton John hates ordering Chinese food. Soya seems to be the hardest word” - Phil Nicol

What is the funniest joke you have heard? Email us and we will publsih the best online this weekend.