It's time to dig out those swimsuits from last year, because summer is here! Whether it's a one piece or a bikini see how your favorite celebs style their beach wear.

No matter the time of year, celebrities are often basking in the sun in exotic locations around the world. And while they take a Hollywood time out, their social media pages continue to be hard at work documenting every fashionable beach look as well as giving us major fitness inspiration.
Click through our gallery to see stars in their swimsuits.
Sofia Vergara
Sofia Vergara is having some fun in the sun – and looking great while doing it! The 45-year-old actress took to her Instagram in January 2018 to share a sexy shot while on a vacation with her husband Joe Manganiello. “The is out!!,” the Modern Family star captioned the image showing off her toned body in a bikini.
In the photo, Sofia posed in front of a stunning backdrop, while smiling and showing off her amazing body in a black and animal-print swimsuit. The mother-of-one added chic sunglasses and a floral-print cover up that blew in the wind to complete the look.
Photo: Instagram/@sofiavergara

Halle Berry
The actress, 51, flaunted her bikini body to ring in the new year. Along with this photo of herself on the beach, she wrote, "Coming for you 2018."
Photo: Instagram/@halleberry

Salma Hayek
The actress sailed out of 2017 by posting a stunning bikini pic to Instagram. Salma showed off her sculptural figure, wearing a purple two-piece swimsuit while on board a boat. Her hair blew in the breeze as she took in the view, accessorizing with sunglasses and a brimmed hat. "I adore the ocean," the star wrote along with the hot boatside pic.
Photo: Instagram/@salmahayek

Pauline Ducruet
Wearing an orange bikini, Princess Stephanie's daughter – and Princess Grace of Monaco's granddaughter – Pauline Ducruet soaked up the sun in Thailand to help kick off 2018. The Monaco royal shared photos of her idyllic trip on her Instagram page.
Photo: Instagram/@paulinedcrt

Rosie Huntington-Whiteley
The model, who welcomed her son Jack in June 2017, unveiled her toned abs in a photo shared from her New Year holiday in Miami. The 30-year-old did not caption the photo, which shows her standing on a balcony with the beach in the background. Rosie looked sensational in a black embellished one-shoulder bikini and sunglasses, with her hair tied back into a bun.
Photo: Instagram/@rosiehw
Continue scrolling to see some more fun in the sun moments from years past

Princess Olympia wrapped up the warmer season in the Hamptons, soaking up the sun in a royal blue string bikini. "Bye summer," she captioned this photo posted on Instagram.
Photo: Instagram/@olympiagreece

Katherine Heigl and daughter Naleigh Kelley
Photo: Instagram/@katherineheigl
Photo: Instagram/@katherineheigl

Amy Schumer
Photo: Instagram/@amyschumer
Photo: Instagram/@amyschumer

Gigi Hadid, Cara Delevingne and Taylor Swift
Photo: Instagram/@taylorswift
Photo: Instagram/@taylorswift

Kate Hudson
Photo: Instagram/@katehudson
Photo: Instagram/@katehudson

Alessandra Ambrosio with her children Anja and Noah Mazur
Photo: Instagram/@alessandraambrosio
Photo: Instagram/@alessandraambrosio

Nina Agdal
Photo: Instagram/@ninaagdal
Photo: Instagram/@ninaagdal

Adriana Lima
Photo: Instagram/@adrianalima
Photo: Instagram/@adrianalima

Olivia Munn
Photo: Instagram/@oliviamunn
Photo: Instagram/@oliviamunn

Kourtney Kardashian
Photo: Instagram/@kourtneykardash
Photo: Instagram/@kourtneykardash

Emily Ratajkowski and her mom Kathleen Balgley
Photo: Instagram.com/@emrata
Photo: Instagram.com/@emrata

Britney Spears
Photo: Instagram/@britneyspears
Photo: Instagram/@britneyspears

Beyoncé
Photo: Beyoncé.com
Photo: Beyoncé.com

Anna Faris
Photo: Instagram/@annafaris
Photo: Instagram/@annafaris

Jennifer Lopez
Photo: Instagram/@jlo
Photo: Instagram/@jlo