How to unlock your mobile phone from any carrier: A complete guide

  • Network unlocking allows you to use any SIM card from national or international operators without restrictions.
  • The process is completely legal and free in most cases, especially for terminals purchased after 2014.
  • It is essential to have the device's IMEI number to request the unlock code from the company.

Close-up of a black smartphone next to a SIM card and its tray, illustrating the network unlocking process.

If you've bought a second-hand phone or have an older one that only works with one carrier, you're probably wondering how to unlock it. Unlocking a phone simply means removing the network restriction imposed by some carriers, which prevents the device from accepting only their own SIM cards. Essentially, it frees your device so you can take advantage of the best deals on the market without being tied down.

The first thing you should know is that unlocking and unlocking are not the same. While unlocking usually refers to removing the PIN or pattern from the screen, unlocking is a technical process linked to the network. Since 2014 , the vast majority of mobile phones sold in Spain come unlocked from the factory, so it's very likely you won't even need to do anything if your device is recent.

Related article:
How to unlock your Android mobile if it belongs to an operator

How do you know if your phone needs unlocking?

SIM card kit and removal tool on a white background, ideal for showing how to change the SIM and test if the mobile phone is unlocked.

Before you rack your brain looking for codes, the easiest thing to do is a quick test. Turn off your device, remove your SIM card, and insert one from a different carrier . When you turn it on, if you can make calls and browse the internet without problems, it's unlocked. If, on the other hand, you get a "SIM not valid" message or it asks for a network unlock code, then you do need to go through the unlocking process.

For iPhone users, there's a more direct way. Simply go to Settings, then General, then About, and look for the "Carrier Lock" section . If it says "No Restrictions," you don't need to do anything at all.

The IMEI: the key to unlocking your phone

Top view of a yellow smartphone with SIM card and microSD, representing the technical configuration of the device.

For any unlocking service, whether free or paid, you'll need the IMEI. This is a unique 15-digit identifier that acts like your phone's ID. Without this information, no carrier will be able to process your request because they wouldn't know exactly which device to unlock.

The quickest way to find it is by dialing *#06# on the keypad; the number will magically appear on the screen. If your phone won't turn on, you can find it on the SIM card tray, the original product box, or in the settings menu under the device status section. Write this number down and keep it somewhere safe, as it's also essential if you ever need to report your device stolen.

The 5 best custom ROMs to revive old phones
Related article:
The 5 best custom ROMs to revive old phones

Carrier unlocking guide in Spain

Person holding a passport and a smartphone with an eSIM, highlighting the advantage of having an unlocked mobile phone for travel.

Depending on where your mobile phone is from, the steps vary slightly. Here's how to proceed with the main carriers:

  • Movistar: If your phone is from before May 2014, you can request the code through the Mi Movistar app or website, in the PUK/IMEI section. You can also call 1004. For iPhones, the request is made directly to Apple, and you just have to wait for confirmation.
  • Vodafone: Customers can do this for free from the "My Vodafone" personal area in the "My Mobile" section. If you are no longer a customer, you can send an email to [email protected] or call 123, although in the latter case a Management fee of €9,68.
  • Orange: The easiest way is to use the customer area, going to Help and selecting the option to unlock my phone via a form. The process usually takes about 48 hours. You can also call 1470 with your IMEI number handy.
  • Yogo: Their phones have been unlocked since 2014. For older devices, they have a web tool where you enter the IMEI and get the code almost instantly.

As for virtual operators like MásMóvil, Lowi, Digi, Simyo, or Pepephone , you can rest assured that they sell unlocked phones from day one. If you bought your phone from any of these companies, you don't need any codes or to complete any paperwork.

How to apply the unlock code

Smartphone with SIM tray and ejection tool on a yellow background, showing the elements necessary for managing the device.

Once your carrier sends you the code via email or SMS, the process on Android is very intuitive. Insert the new carrier's SIM card and, when your phone asks for the "Network unlock code ," enter it carefully. If everything goes well, you'll see a message confirming that the lock has been removed.

On iPhones, the system is different because there are no manual codes. The carrier sends the authorization to Apple's servers. Once processed, you simply connect your iPhone to a Wi-Fi network with the new SIM card inserted for it to activate automatically.

Legal aspects, guarantees and security

Many people are afraid of voiding their warranty, but you can rest assured: unlocking your phone is perfectly legal . In fact, by law, carriers must provide the process free of charge once you've finished paying for the device. Furthermore, this process doesn't affect the internal software or delete your photos or contacts, so your data is safe.

If you find yourself in a difficult situation, such as the code not working or you've run out of attempts, professional services are available. Companies like doctorSIM or specialized stores in Madrid can help you unlock your device officially, even for international carriers like AT&T, T-Mobile, or Verizon, ensuring the process is permanent and won't damage your device.

Having an unlocked phone allows you to save money by choosing the plan that best suits you and increases the resale value of your device, since anyone can use it regardless of their carrier. Just remember that if the phone has been reported stolen, the IMEI block is legally irreversible and it cannot be unlocked.

Having an unrestricted device is the best way to take advantage of today's mobile technology, allowing you to switch carriers depending on the offer or use local SIMs when traveling. Whether you request the free code from your original carrier, use online tools, or go to a professional technician, the important thing is to have your IMEI number and know that it's a safe process that doesn't affect your warranty or the data stored on your device.

LineageOS for beginners
Related article:
LineageOS for beginners: revive your old mobile without Google

Add as preferred source in Google