Coordinate Calculator: Overworld Source to Nether Destination
Coordinate Calculator: Nether Source to Overworld Destination
3D Distance Calculator:
Instructions
Choose a location for a portal in the Overworld and build the frame without lighting it.
Walk into your portal frame as if you were going to use it, and record the F3 X, Y, and Z coordinates, as well as the Facing (F) number. (This is important if you care about having a smooth transition when you walk through a portal!).
Enter the coordinates into the Overworld to Nether calculator above. Double check your input, especially whether the numbers are positive or negative. Obsidian is a pain to break down and move if you make a mistake!
The resulting coordinates will be displayed in the grey boxes to the right. These are the target coordinates for placing your Nether-side portal.
Light your portal and go to the Nether.
Go to the calculated coordinates in the Nether using F3.
Destroy and replace the block below your feet at these coordinates with obsidian.
Turn your character until the F3 Facing (F) number from earlier matches up. This is the direction you will be facing when exiting the portal.
Place a second obsidian block in the floor either to your left or right (it doesn't matter). These two obsidian will form the base of your portal.
Build a walkway from the portal base at least a few blocks in the matching "F" number direction to ensure a smooth transition through the portal. (This ensures that you won't be staring at a wall after going through a portal.)
Complete the Nether portal frame and light it.
Disable or destroy the Nether portal that the game spawned for you when you first entered the Nether.
Exit the Nether through the new portal you just built.
If you did everything right, you should have a pair of perfectly linked Nether portals. You can repeat this process as many times as you like.
Notes
This method exploits the fact that when passing through a portal, if the game detects a portal in the other dimension exactly at your target coordinates, it will always use that portal, even if other possible ones are within range.
To avoid linking problem, Make sure that no two Overworld portals are within 33 blocks of each other. (You can have them that close if your design requires it, just realize that they will probably both go to the same place.)
Even though slight misalignments in portal placement can still work, it is best to be as precise with your portal placement as possible to prevent conflicts.
There is more slack in portal placement in the Overworld due to the scale differences between the realms. (You can usually move a surface portal up to 8 blocks in any direction without fear of conflicts, so long as you do not break the 33 meter proximity rule when doing so.)
This method also works in reverse. If you are starting a portal pair from the Nether, use the same instructions but swap "Overworld" and "Nether" and use the second calculator.
Any time you read F3 coordinates, ignore the decimal part (round down). Only the whole number matters.
The Altitude (Y) coordinate matters! If you build a portal near sky limit in the Overworld, it will be near the ceiling in the Nether, and vice-versa. Keep this in mind, as you might end up having to build a bunch of ladders in the Nether or to complete a walkway between the portals!
I have included a handy 3D Distance calculator for checking the precise distances between portals, points, or anything else in minecraft. Just get the F3 coordinates of two locations enter them in the calculator.