Flights from Ho Chi Minh City to Hanoi and flight information

Cheap Flights › All Countries › Vietnam › Ho Chi Minh City › Hanoi › Flights from Ho Chi Minh City to Hanoi

Flight prices from Ho Chi Minh City to Hanoi

Planning a trip from Ho Chi Minh City to Hanoi and looking for the best fares? On Aviasurf you can find the latest prices for any day and choose the most convenient flight. Book a flight from Ho Chi Minh City to Hanoi from $28. with departure on February 13, 2027.

Flights Ho Chi Minh City - Hanoi

Climate in Hanoi and when to travel

The warmest month in Hanoi is June, with an average monthly air temperature of 29.8 °C; the coldest is January at 16.9 °C. February has the lowest average monthly precipitation, 35 mm.

For the nearest observed departure in November, the climate normals are: average monthly air temperature 22.0 °C, monthly precipitation 60 mm, and daylight 11.0 hours.

Fare calendar for flights from Ho Chi Minh City to Hanoi

Explore fare trends for flights Ho Chi Minh City — Hanoi with our calendar. It helps you see ticket prices for each day of any month and optimize your travel budget. The tool makes finding the best deals even easier and more convenient.

Among the months represented in the departure dates we recently observed, February had the lowest fare from Ho Chi Minh City to Hanoi, from $28. We compared 4 months of observed offers.

Current flight offers from Ho Chi Minh City to Hanoi

Below is a selection of tickets on the Ho Chi Minh City – Hanoi route. Use our search to view all tickets on this route. For a more precise search, apply filters by airline, airports, flight duration, stops, baggage, cabin class, and departure or arrival time.

Cheapest fare nonstop from Ho Chi Minh City to Hanoi

Found in the last 48 hours: a ticket from Vietravel Airlines. Departure from Tan Son Nhat International Airport (SGN) is scheduled for 13.02.2027 at 22:50. Arrival at Hanoi airport Noi Bai International Airport (HAN) is expected on 14.02.2027 at 01:00. Ticket price is $28. Flight time 2 hours and 10 minutes. No checked baggage Find the same ticket

Cheapest flight direct
Airline Vietravel Airlines Vietravel Airlines
VU 194
22:50
Ho Chi Minh City (SGN)
13.02.2027
SGN
HAN
2h 10m
Direct flight
01:00
Hanoi (HAN)
14.02.2027
No baggage
Airbus Industrie A321
Economy

General flight information from Ho Chi Minh City to Hanoi

Straight-line distance between cities
1160 km
721 miles
Flight time
2 h 5 min
Nonstop flight time
Flight frequency
52
Direct flights per day (minimum)
Time difference
Same time zone
Hanoi and Ho Chi Minh City share local time
See also:

Flight schedule from Ho Chi Minh City to Hanoi

Departure Arrival Duration Flight Days of week
05:00 (SGN) 07:10 (HAN) 2 h 10 min Vietjet (VJ 134)
05:15 (SGN) 07:25 (HAN) 2 h 10 min Sun PhuQuoc Airways (9G 802)
05:40 (SGN) 07:50 (HAN) 2 h 10 min Vietravel Airlines (VU 102)
05:45 (SGN) 07:55 (HAN) 2 h 10 min Sun PhuQuoc Airways (9G 804)
06:00 (SGN) 08:10 (HAN) 2 h 10 min Vietjet (VJ 122)
06:00 (SGN) 08:10 (HAN) 2 h 10 min Vietnam Airlines (VN 206)
06:30 (SGN) 08:40 (HAN) 2 h 10 min Sun PhuQuoc Airways (9G 808)
06:30 (SGN) 08:40 (HAN) 2 h 10 min Vietnam Airlines (VN 238)
06:30 (SGN) 08:40 (HAN) 2 h 10 min Vietnam Airlines (VN 6004)
06:35 (SGN) 08:40 (HAN) 2 h 5 min Vietnam Airlines (VN 7004)
06:45 (SGN) 08:55 (HAN) 2 h 10 min Vietnam Airlines (VN 202)
07:00 (SGN) 09:10 (HAN) 2 h 10 min Vietjet (VJ 150)
07:00 (SGN) 09:10 (HAN) 2 h 10 min Vietnam Airlines (VN 240)
07:10 (SGN) 09:20 (HAN) 2 h 10 min Vietnam Airlines (VN 242)
07:10 (SGN) 09:20 (HAN) 2 h 10 min Vietravel Airlines (VU 104)
07:15 (SGN) 09:25 (HAN) 2 h 10 min Sun PhuQuoc Airways (9G 816)
07:50 (SGN) 10:00 (HAN) 2 h 10 min Vietjet (VJ 1138)
08:00 (SGN) 10:10 (HAN) 2 h 10 min Vietnam Airlines (VN 208)
08:15 (SGN) 10:25 (HAN) 2 h 10 min Sun PhuQuoc Airways (9G 816)
08:40 (SGN) 10:50 (HAN) 2 h 10 min Vietjet (VJ 148)
09:00 (SGN) 11:10 (HAN) 2 h 10 min Sun PhuQuoc Airways (9G 820)
09:00 (SGN) 11:10 (HAN) 2 h 10 min Vietnam Airlines (VN 244)
09:25 (SGN) 11:35 (HAN) 2 h 10 min Sun PhuQuoc Airways (9G 824)
09:40 (SGN) 11:50 (HAN) 2 h 10 min Sun PhuQuoc Airways (9G 824)
09:40 (SGN) 11:50 (HAN) 2 h 10 min Vietjet (VJ 1138)
10:00 (SGN) 12:10 (HAN) 2 h 10 min Vietjet (VJ 188)
10:00 (SGN) 12:10 (HAN) 2 h 10 min Vietnam Airlines (VN 210)
10:10 (SGN) 12:15 (HAN) 2 h 5 min Sun PhuQuoc Airways (9G 828)
10:10 (SGN) 12:20 (HAN) 2 h 10 min Vietjet (VJ 148)
10:10 (SGN) 12:20 (HAN) 2 h 10 min Vietnam Airlines (VN 234)
10:30 (SGN) 12:40 (HAN) 2 h 10 min Vietjet (VJ 188)
10:35 (SGN) 12:40 (HAN) 2 h 5 min Vietnam Airlines (VN 234)
10:40 (SGN) 12:50 (HAN) 2 h 10 min Vietjet (VJ 142)
11:00 (SGN) 13:10 (HAN) 2 h 10 min Sun PhuQuoc Airways (9G 832)
11:00 (SGN) 13:10 (HAN) 2 h 10 min Vietnam Airlines (VN 246)
11:35 (SGN) 13:45 (HAN) 2 h 10 min Vietjet (VJ 158)
11:45 (SGN) 13:55 (HAN) 2 h 10 min Sun PhuQuoc Airways (9G 834)
12:00 (SGN) 14:10 (HAN) 2 h 10 min Vietjet (VJ 180)
12:00 (SGN) 14:10 (HAN) 2 h 10 min Vietjet (VJ 184)
12:00 (SGN) 14:10 (HAN) 2 h 10 min Vietnam Airlines (VN 212)
12:15 (SGN) 14:25 (HAN) 2 h 10 min Vietnam Airlines (VN 6010)
12:15 (SGN) 14:25 (HAN) 2 h 10 min Vietnam Airlines (VN 7010)
12:25 (SGN) 14:35 (HAN) 2 h 10 min Sun PhuQuoc Airways (9G 840)
12:25 (SGN) 14:35 (HAN) 2 h 10 min Vietnam Airlines (VN 230)
12:25 (SGN) 14:35 (HAN) 2 h 10 min Vietravel Airlines (VU 108)
13:00 (SGN) 15:10 (HAN) 2 h 10 min Vietnam Airlines (VN 248)
13:20 (SGN) 15:30 (HAN) 2 h 10 min Vietjet (VJ 124)
13:45 (SGN) 15:55 (HAN) 2 h 10 min Vietnam Airlines (VN 226)
14:00 (SGN) 16:10 (HAN) 2 h 10 min Vietjet (VJ 124)
14:00 (SGN) 16:10 (HAN) 2 h 10 min Vietnam Airlines (VN 214)
14:00 (SGN) 16:10 (HAN) 2 h 10 min Vietravel Airlines (VU 114)
14:10 (SGN) 16:20 (HAN) 2 h 10 min Vietjet (VJ 138)
14:45 (SGN) 16:55 (HAN) 2 h 10 min Vietjet (VJ 146)
15:00 (SGN) 17:10 (HAN) 2 h 10 min Vietjet (VJ 138)
15:00 (SGN) 17:10 (HAN) 2 h 10 min Vietjet (VJ 152)
15:00 (SGN) 17:10 (HAN) 2 h 10 min Vietnam Airlines (VN 250)
15:05 (SGN) 17:15 (HAN) 2 h 10 min Vietjet (VJ 152)
15:30 (SGN) 17:40 (HAN) 2 h 10 min Vietnam Airlines (VN 232)
15:35 (SGN) 17:45 (HAN) 2 h 10 min Sun PhuQuoc Airways (9G 854)
16:00 (SGN) 18:10 (HAN) 2 h 10 min Sun PhuQuoc Airways (9G 854)

Showing 60 of 112 nonstop flights.

Airports for flights from Ho Chi Minh City to Hanoi

The Ho Chi Minh City — Hanoi route is served by the following airports:

Airports in Ho Chi Minh City

Airport Distance to city center Lowest fare Note
Tan Son Nhat International Airport (SGN) $28

Distances are straight-line distances to the city center.

Airports in Hanoi

Airport Distance to city center Lowest fare Note
Noi Bai International Airport (HAN) $28

Distances are straight-line distances to the city center.

Airlines on itineraries from Ho Chi Minh City to Hanoi

Available itineraries from Ho Chi Minh City to Hanoi involve 5 airlines; shown below: 5. Vietnam Airlines appears most often in the observed options.

Non-stop flights are operated by: Vietravel Airlines, Vietjet, Sun PhuQuoc Airways, Vietnam Airlines.

Airline Vietnam Airlines
Vietnam Airlines
Flight numbers by segment: VN 6030 VN 158 VN 162 VN 164 VN 1410 VN 1602 VN 206 VN 106 VN 1420 VN 1614 VN 1392 VN 1620 VN 1380 VN 1572 VN 6152 VN 1558 VN 6004 VN 238 VN 7004 VN 202 VN 240 VN 1404 VN 1590 VN 1340 VN 242 VN 166 VN 160 VN 208 VN 112 VN 244 VN 168 VN 170 VN 118 VN 6154 VN 1552 VN 210 VN 7186 VN 6034 VN 234 VN 122 VN 1825 VN 1238 VN 246 VN 172 VN 7150 VN 126 VN 8026 VN 1574 VN 8346 VN 1562 VN 1664 VN 1650 VN 212 VN 6010 VN 7010 VN 230 VN 248 VN 132 VN 176 VN 178 VN 226 VN 1266 VN 1718 VN 214 VN 7572 VN 6044 VN 180 VN 7160 VN 7190 VN 250 VN 134 VN 188 VN 232 VN 1374 VN 1544 VN 216 VN 1368 VN 7540 VN 252 VN 140 VN 190 VN 254 VN 228 VN 218 VN 7022 VN 6022 VN 6054 VN 194 VN 196 VN 258 VN 142 VN 262 VN 146 VN 220 VN 256 VN 260 VN 224 VN 270
Airline Vietjet
Vietjet
Flight numbers by segment: VJ 166 VJ 329 VJ 448 VJ 134 VJ 122 VJ 356 VJ 496 VJ 150 VJ 380 VJ 430 VJ 1138 VJ 148 VJ 188 VJ 142 VJ 158 VJ 180 VJ 184 VJ 124 VJ 640 VJ 514 VJ 306 VJ 568 VJ 138 VJ 642 VJ 520 VJ 146 VJ 152 VJ 394 VJ 424 VJ 1312 VJ 564 VJ 358 VJ 492 VJ 386 VJ 432 VJ 630 VJ 516 VJ 162 VJ 128 VJ 130 VJ 154 VJ 622 VJ 506 VJ 522 VJ 144 VJ 168 VJ 628 VJ 1508 VJ 156 VJ 632 VJ 136 VJ 164 VJ 132 VJ 1140
Airline Sun PhuQuoc Airways
Sun PhuQuoc Airways
Flight numbers by segment: 9G 840 9G 860 9G 802 9G 804 9G 1953 9G 1202 9G 808 9G 816 9G 962 9G 918 9G 1961 9G 1214 9G 820 9G 964 9G 924 9G 824 9G 1963 9G 828 9G 832 9G 834 9G 1969 9G 1218 9G 1226 9G 1975 9G 1232 9G 1234 9G 976 9G 934 9G 854 9G 978 9G 858 9G 1985 9G 1238 9G 1244 9G 868 9G 986 9G 946 9G 874 9G 880 9G 882 9G 884 9G 890 9G 894
Airline Air Cambodia
Air Cambodia
Flight numbers by segment: K6 3106 K6 3158 K6 3164 K6 3112 K6 3166 K6 3118 K6 3168 K6 3122 K6 3126 K6 3172 K6 3132 K6 3180 K6 3188 K6 3134 K6 3140 K6 3142 K6 3146
Airline Vietravel Airlines
Vietravel Airlines
Flight numbers by segment: VU 194 VU 102 VU 104 VU 108 VU 114 VU 112

Aircraft used on itinerary segments from Ho Chi Minh City to Hanoi

Observed itinerary segments from Ho Chi Minh City to Hanoi use 3 models of aircraft across 5 airlines.

Airbus Industrie A321
Airbus Industrie A320
Airbus Industrie A330-200

Connecting cities for flights from Ho Chi Minh City to Hanoi

Flying from Ho Chi Minh City to Hanoi with a layover? Consider these connecting cities:

Flights from Ho Chi Minh City to Vietnam

Below are the most popular routes from Ho Chi Minh City to Vietnam at the lowest prices from airlines on different dates, with no commission.

Airline Vietjet Vietjet
VJ 345
07:00
Ho Chi Minh City (SGN)
30.11.2026
SGN
PQC
1h 0m
Direct flight
08:00
Phu Quoc (PQC)
30.11.2026
No baggage
Airbus Industrie A330
Economy
from $24
Find flight
Airline Vietnam Airlines Vietnam Airlines
VN 6442
13:10
Ho Chi Minh City (SGN)
16.02.2027
SGN
HPH
2h 10m
Direct flight
15:20
Haiphong (HPH)
16.02.2027
No baggage
Airbus Industrie A321
Economy
from $24
Find flight
Airline Pacific Airlines Pacific Airlines
BL 6030
05:45
Ho Chi Minh City (SGN)
19.02.2027
SGN
DAD
1h 30m
Direct flight
07:15
Da Nang (DAD)
19.02.2027
No baggage
Airbus Industrie A321
Economy
from $24
Find flight
Airline Vietjet Vietjet
VJ 382
11:15
Ho Chi Minh City (SGN)
14.02.2027
SGN
UIH
1h 10m
Direct flight
12:25
Qui Nhon (UIH)
14.02.2027
No baggage
Airbus Industrie A320
Economy
from $26
Find flight
Airline Vietjet Vietjet
VJ 310
10:00
Ho Chi Minh City (SGN)
05.01.2027
SGN
HUI
1h 25m
Direct flight
11:25
Hue (HUI)
05.01.2027
No baggage
Airbus Industrie A321
Economy
from $26
Find flight
Airline Vietnam Airlines Vietnam Airlines
VN 1260
06:15
Ho Chi Minh City (SGN)
18.02.2027
SGN
VII
1h 45m
Direct flight
08:00
Vinh (VII)
18.02.2027
No baggage
Airbus Industrie A321
Economy
from $26
Find flight
Airline Vietjet Vietjet
VJ 614
06:00
Ho Chi Minh City (SGN)
14.12.2026
SGN
CXR
1h 0m
Direct flight
07:00
Nha Trang (CXR)
14.12.2026
No baggage
Airbus Industrie A321
Economy
from $27
Find flight
Airline Vietjet Vietjet
VJ 394
15:55
Ho Chi Minh City (SGN)
18.02.2027
SGN
PXU
1h 10m
Direct flight
17:05
Pleiku (PXU)
18.02.2027
No baggage
Airbus Industrie A321
Economy
from $27
Find flight
Airline Vietnam Airlines Vietnam Airlines
VN 1464
09:35
Ho Chi Minh City (SGN)
12.02.2027
SGN
VCL
1h 25m
Direct flight
11:00
Tamky (VCL)
12.02.2027
No baggage
Airbus Industrie A320
Economy
from $27
Find flight
Airline Vietravel Airlines Vietravel Airlines
VU 194
22:50
Ho Chi Minh City (SGN)
13.02.2027
SGN
HAN
2h 10m
Direct flight
01:00
Hanoi (HAN)
14.02.2027
No baggage
Airbus Industrie A321
Economy
from $28
Find flight
Airline Vietjet Vietjet
VJ 362
16:20
Ho Chi Minh City (SGN)
14.01.2027
SGN
DLI
0h 55m
Direct flight
17:15
Dalat (DLI)
14.01.2027
No baggage
Airbus Industrie A321
Economy
from $34
Find flight
Airline Vietnam Airlines Vietnam Airlines
VN 1061
12:50
Ho Chi Minh City (SGN)
20.12.2026
SGN
CAH
1h 5m
Direct flight
13:55
Ca Mau (CAH)
20.12.2026
With baggage
Airbus Industrie A321
Economy
from $41
Find flight
Airline Vietjet Vietjet
VJ 262
14:45
Ho Chi Minh City (SGN)
12.02.2027
SGN
VDH
1h 35m
Direct flight
16:20
Dong Hoi (VDH)
12.02.2027
No baggage
Airbus Industrie A321
Economy
from $42
Find flight
Airline 0V 0V
0V 8069
15:25
Ho Chi Minh City (SGN)
15.12.2026
SGN
VCS
1h 0m
Direct flight
16:25
Con Dao (VCS)
15.12.2026
With baggage
Aerospatiale/Alenia ATR
Economy
from $44
Find flight
Airline Vietnam Airlines Vietnam Airlines
VN 1664
11:45
Ho Chi Minh City (SGN)
29.11.2026
SGN
TBB
1h 10m
Direct flight
12:55
Tuy Hoa (TBB)
29.11.2026
With baggage
Airbus Industrie A321
Economy
from $48
Find flight
Airline Vietjet Vietjet
VJ 244
17:55
Ho Chi Minh City (SGN)
02.01.2027
SGN
THD
2h 0m
Direct flight
19:55
Thanh Hoa (THD)
02.01.2027
No baggage
Airbus Industrie A321
Economy
from $51
Find flight
Airline Sun PhuQuoc Airways Sun PhuQuoc Airways
9G 1560
09:10
Ho Chi Minh City (SGN)
05.12.2026
SGN
VDO
2h 0m
Direct flight
11:10
Van Don (VDO)
05.12.2026
With baggage
Airbus A321neo
Economy
from $57
Find flight
Airline Vietjet Vietjet
VJ 634
23:55
Ho Chi Minh City (SGN)
12.01.2027
SGN
VCA
12h 15m
with 1 stop
12:10
Can Tho (VCA)
13.01.2027
No baggage
Airbus Industrie A321
Economy
from $87
Find flight

Frequently asked questions about flights from Ho Chi Minh City to Hanoi

Which airlines operated the lowest-priced itinerary we observed from Ho Chi Minh City to Hanoi?

The lowest non-stop fare we observed was $28, operated by Vietravel Airlines. This result is based on 6 distinct offers for the route. The offers were found from November 20, 2026 to November 25, 2026.

In which month have we observed the lowest fares from Ho Chi Minh City to Hanoi?

February had the lowest observed fares from Ho Chi Minh City to Hanoi, starting at $28. We compared 4 departure months represented in the observed offers. The offers were found from November 20, 2026 to November 25, 2026.

On which date have we observed the lowest fare from Ho Chi Minh City to Hanoi?

The lowest fare we observed was $28 for departure on February 13, 2027. This is an observation from 6 distinct offers, not a prediction of future prices. The offers were found from November 20, 2026 to November 25, 2026.

How much does a flight from Ho Chi Minh City to Hanoi cost?

Flight prices from Ho Chi Minh City to Hanoi can vary greatly depending on airline, cabin class, season, and booking time. The lowest fare is $28.

Which airlines appear in available itineraries from Ho Chi Minh City to Hanoi?

Available itineraries from Ho Chi Minh City to Hanoi may include flight segments operated by Vietravel Airlines, Vietjet, Sun PhuQuoc Airways, Air Cambodia, Vietnam Airlines.

How long is the flight from Ho Chi Minh City to Hanoi?

The fastest scheduled nonstop flight from Ho Chi Minh City to Hanoi takes about 2 hours and 5 minutes. Recently observed itineraries with a plane change took from 50 hours and 50 minutes.

Are there direct flights from Ho Chi Minh City to Hanoi?

The schedule data currently available to us includes nonstop flights from Ho Chi Minh City to Hanoi. Airlines such as Vietjet, Sun PhuQuoc Airways, Vietravel Airlines, Vietnam Airlines operate these flights. Use our search to check options for your dates.

How much is a round-trip ticket Ho Chi Minh City — Hanoi?

Round-trip fares from Ho Chi Minh City to Hanoi vary by season, booking date, airline, and cabin class. The cheapest fare found is $76 with departure on February 25, 2027 and return on April 5, 2027. Use our search for the most up-to-date prices.

How often do flights operate from Ho Chi Minh City to Hanoi?

There are at least 52 flights per day on the route Ho Chi Minh City — Hanoi from various airlines. This is based on the schedule we received on November 23, 2026. Schedules change by season and day of week. Use our search for the latest schedule and availability.

What are the carry-on baggage rules for flights from Ho Chi Minh City to Hanoi?

Carry-on rules for flights from Ho Chi Minh City to Hanoi vary by airline. Typically passengers can bring one carry-on bag and one personal item such as a laptop bag or handbag. Weight and size limits usually are around 7–10 kg and 55x40x20 cm. Liquids and some items have additional security rules. Always check the specific airline policy before you fly.

What are the rules for traveling with pets on flights from Ho Chi Minh City to Hanoi?

Pet transport rules vary by airline. Generally pets must be in approved carriers. Some airlines allow small pets in the cabin, while larger pets must travel in the cargo hold. Health documents and certificates are required. Please confirm all requirements with your chosen airline.

How early should I arrive at the airport for a flight from Ho Chi Minh City to Hanoi?

Arrive early — typically 2–3 hours before international flights and 1–2 hours before domestic flights. This allows time for check‑in, baggage drop, and security. Peak periods or certain destinations may require extra time.

What additional fees can occur when booking a ticket from Ho Chi Minh City to Hanoi?

Additional fees can include seat selection, extra or special baggage, onboard meals, ticket changes or cancellations, early or late check‑in, and insurance. We do not add booking fees, but extra charges depend on the airline and fare rules.

Are there discounts or promotions for flights from Ho Chi Minh City to Hanoi?

Discounts and promotions vary by airline and booking period. Many airlines run deals outside peak seasons or for early bookings. Check our site regularly for the latest offers, as availability can change quickly.

Are there night flights from Ho Chi Minh City to Hanoi?

Yes, there are night flights from Ho Chi Minh City to Hanoi operated by various airlines. These can be convenient for travelers looking to save daytime hours. Check current schedules and availability in our search.

Are there Wi‑Fi flights on the Ho Chi Minh City - Hanoi route?

Wi‑Fi availability on Ho Chi Minh City - Hanoi flights varies by airline and aircraft. Check details with specific airlines or use our search to see current options.

What are the most common transfer options on flights from Ho Chi Minh City to Hanoi?

Flights from Ho Chi Minh City to Hanoi can include various transfer options depending on the airline. Popular layover cities include Phu Quoc. Use our search to find the best transfer options.

What onboard services are provided on Ho Chi Minh City - Hanoi flights?

Onboard services vary by airline. Typically passengers can expect entertainment, meals, and beverages, and some carriers offer Wi‑Fi or additional amenities. Check with the airline or use our search for details.

Which airports serve the Ho Chi Minh City - Hanoi route?

The Ho Chi Minh City - Hanoi route is usually served by these departure airports: Tan Son Nhat International Airport. Arrival is usually through these airports: Noi Bai International Airport. Exact airport combinations depend on the airline and selected flight. Use our search for details.

What aircraft fly the Ho Chi Minh City - Hanoi route?

Airlines operate various aircraft types on the Ho Chi Minh City - Hanoi route. Examples include Airbus Industrie A321, Airbus Industrie A320, Airbus Industrie A330-200 and other models. Aircraft type depends on the carrier and specific flight. Use our search for up‑to‑date details.

Which connecting cities are common on the Ho Chi Minh City - Hanoi route?

The Ho Chi Minh City - Hanoi route may include different connecting cities, especially for non‑direct flights. Possible connections include Phu Quoc and others. Use our search to find the best option.
Book faster in the app

Open search faster and keep an eye on fare changes right from the mobile app.

QR Code to download app