We are a private visa service, not the Vietnamese government or an embassy. The Vietnam Immigration Department decides every visa. You can always apply for an e-visa yourself on the official portal evisa.gov.vn for the government fee only. Facts checked in November 2026.

File has script tag on the Vietnam e-visa portal: four fixes for the photo upload, a fresh JPG copy, under 2 MB, a plain file name and another browser

What “File has script tag” means

The portal checks both images automatically as soon as you upload them, as its Instruction page explains (checked 23 November 2026). Travellers report that the form does not move on until the file passes.

However, the portal does not publish what triggers this particular message, so we do not guess at a cause here. Two things are clear from its wording and from where it appears. First, it is about the file you chose, and it says nothing about you or your passport. Second, the portal accepts only files that meet its technical specifications. So the way forward is to give it a clean file that does.

What the portal accepts

These are the portal’s own rules for the two images, as the Instruction page gave them on 23 November 2026:

ImageWhat the portal asks
PortraitA recent photo, 4 × 6 cm, in JPG or JPEG format, under 2 MB; facing the front, no hat, no glasses, formal clothes, white background
Passport data pageA clear image of the page with your photo and details. The system reads your personal data from it, and it does not let you submit if this image is invalid

For the full specifications, the portal’s other photo warnings and every field of the form, see our field-by-field guide to the e-visa form. Our photo and passport requirements page covers the visa on arrival as well.

How to fix “File has script tag”: six steps, easiest first

Start from the original image each time: the photo your phone or camera saved, or the file a photo shop gave you. Then work down this list, and try the upload again after each step.

Four checks before uploading the photo again: JPG or JPEG format, under 2 MB, a fresh copy of the original, and a private window or another browser

1. Make a fresh JPG copy of the original

Travellers have reported that a new copy of the photo went through where the first file did not. Use the photo tool that came with your device; you do not need an outside website for this:

  • iPhone or iPad. In Photos, open the photo, tap Share, then Options, and choose Most Compatible. Apple’s iPhone User Guide says files shared this way may convert to JPEG. Then send the copy to yourself, for example by Mail, and save it.
  • Samsung Galaxy. In Gallery, open the picture and tap Edit (the pencil). Tap More options (the three dots), then Resize, and choose one of the ratios offered. Tap Done, then More options again and Save as copy. Samsung’s page does not say which format the copy has, so check it in step 2. These are Samsung’s steps for the Galaxy S23; menus can differ on other models.
  • Windows. Open the photo in Paint and save it under a new name, choosing JPEG as the format when you save. Microsoft’s Paint page lists JPEG among its formats.
  • Mac. Open the photo in Preview and choose File, then Export. In the Format menu, pick JPEG, give the file a new name and save it (Apple’s Preview guide).
How to make a fresh JPG copy of a photo on an iPhone or iPad, a Samsung Galaxy, Windows and a Mac

For photos you have not taken yet, you can set the phone to save JPG from the start. On an iPhone, go to Settings, Camera, Formats and tap Most Compatible; Apple says new photos then use JPEG. On a Galaxy S23, open the Camera settings, tap Advanced picture options and turn off High efficiency pictures, which saves in HEIF. Samsung notes that some apps and websites do not support HEIF pictures.

2. Check the format: JPG or JPEG

The portal asks for the portrait in JPG or JPEG. So look at the end of the file name: it should be .jpg or .jpeg. A file that ends in .heic, .png or .webp needs converting with step 1 first. Changing only the letters at the end of the name does not convert the image.

3. Keep the file under 2 MB

Photos straight from a phone camera are often larger than 2 MB. Paint has a Resize option on its Home tab, in pixels or as a percentage, and the Samsung steps above include Resize too. In Preview on a Mac, you can lower the JPEG quality when you export. Do not shrink the picture more than you need, though, because the portal also checks the resolution of both images.

4. Crop without changing how you look

A 4 × 6 cm photo is upright, two units wide by three high. If you crop, keep that shape and keep your whole head and shoulders in the frame. Leave everything else alone: no filters, no beauty mode and no AI retouching, because the portal compares the portrait with your passport photo.

5. Give the file a short, plain name

Rename the copy to something like portrait.jpg or passport.jpg, with letters and numbers only. The portal does not ask for this, and we cannot say that it matters. It costs nothing to rule out, though.

6. Try a private window or another browser, on a computer

Some travellers have reported that the same file went through in a different browser. So, on a computer, open a private window and start the form again. In Chrome, select More, then New Incognito window (Chrome Help). In Firefox, open the menu and select New private window (Mozilla Support). If that changes nothing, try another up-to-date browser.

What not to do

  • Do not photograph a printed photo or a screen. The portal checks whether a portrait was captured from another source, and its warning says the application may be rejected.
  • Do not send the same file again and again. If “File has script tag” came up twice, change the file before the next try.
  • Do not upload a file that a stranger “fixed” for you and sent back through a link you do not trust. Your passport image is sensitive, and the tools already on your phone or computer can make the copy.

Still seeing “File has script tag”?

If a clean JPG still fails, you have two options. The first is to ask the portal itself. Its footer lists a technical support address, technical_support@immigration.gov.vn, and a hotline, 024 3825 7941 (+84 24 3825 7941 from abroad).

The second is to let us handle the images:

You upload your portrait and passport scan as they are. Our team adjusts the size, crop and background to the official technical specifications of the government portal. We never change your appearance.

Before we submit, we also check your details against the passport scan. The Vietnam Immigration Department still decides every visa.

Refund. If Vietnam Immigration refuses your e-visa, we refund 95% of your payment (the 5% PayPal transaction fee is not refundable), under our refund policy. There is no refund when the refusal is due to a past violation of Vietnamese law or an overstay.

Flying soon?

Vietnam’s immigration law sets 3 working days for an e-visa, counted from a complete application and the fee (Article 16a of Law 47/2014/QH13, as amended). Working days are Monday to Friday in Vietnam time, without public holidays. As a result, a day lost to “File has script tag” at the upload step can matter when your flight is close. Our guide to the e-visa processing time shows how to count the days.

If you would rather hand the application over, these are our options for a 30-day, single-entry tourist e-visa. Prices and options depend on your passport:

OptionOrder and pay before (Vietnam time)Result expectedPrice per person
4 working days09:30by 18:00 on the 4th working dayfrom USD 60
1 working day08:00by 18:30 the same dayfrom USD 160
4 working hours07:00 or 14:00by 12:30 or 18:30 the same dayfrom USD 190

Prices include the government fee. The form shows the price and the expected result time before you pay.

On Saturdays, Sundays and Vietnamese public holidays, apply for a new e-visa on our application form: order before 14:00 Vietnam time for a result by 18:30, from USD 260 per person.

Already submitted on the portal and still waiting? In that case, see speeding up an e-visa you already submitted.

Before you send your passport to anyone

A passport scan is sensitive, whoever you send it to. Before you hand yours to any service, look for:

  • a business name and an address on the website;
  • a privacy policy that says what happens to your passport image;
  • a refund policy;
  • payment through a known payment provider.

In addition, avoid sending a passport only to an anonymous chat number. Ours are public: our privacy policy, our refund policy and our About us page.

FAQ: “File has script tag” on the Vietnam e-visa portal

What does “File has script tag, please try again” mean?

It is the portal’s notice that the file you uploaded did not pass its automatic check. The portal’s Instruction page does not explain the wording, and we do not guess. A fresh JPG copy of the original image, under 2 MB, is the first thing to try.

Is it my photo or the portal?

Nobody outside the Immigration Department can say for certain, because the portal does not publish the trigger. Start with the file, since that is the part you control. If a clean copy still fails in another browser, write to the portal’s technical support.

Does “File has script tag” mean my e-visa was refused?

No. It appears when you upload the images, before you fill in the form and pay. Nothing has been submitted at that point.

Can I upload a PNG or HEIC portrait?

The portal’s instructions ask for the portrait in JPG or JPEG, so convert a PNG or HEIC photo first (step 1).

Will a screenshot of my photo work?

We do not suggest it. A screenshot is a new picture of your screen and no longer your original photo, and the portal checks whether a portrait was captured from another source. A JPG exported from the original avoids that question.

Can someone else submit my e-visa for me?

Yes. You can apply yourself on evisa.gov.vn for the government fee, or a private visa service can prepare and submit the application for a service fee. If you choose a service, use the checklist above. We are one such service: apply through visa-vietnam.hk.

Facts checked on 23 November 2026 against the portal’s Instruction page, its home page and support contacts (read without entering data), the portal’s photo warnings as we read them on its form for our field-by-field guide (12 November 2026), the Apple, Samsung, Microsoft, Google Chrome and Mozilla help pages linked above, Article 16a of Law 47/2014/QH13 as amended, and our own Apply form. Travellers’ reports pointed us to the topic; none is quoted here. Rules can change, so check official sources before you travel.

Profile picture of author Visa-Vietnam.HK
About the Author:

Visa-Vietnam.HK is a private Vietnam visa service with more than 10 years of experience. We have helped tens of thousands of travellers from around the world get their visas quickly and reliably. Our guides on the e-visa, urgent visas, visa on arrival, entry procedures and customs are checked against official sources. We are not the Vietnamese government or an embassy.