# Fix: White Border around imported UI elements using .PNG alpha transparency

**URL:** <https://forums.unrealengine.com/t/fix-white-border-around-imported-ui-elements-using-png-alpha-transparency/1968557>\
**Category:** Asset Creation\
**Tags:** unreal-engine\
**Created:** [August 9, 2024, 4:38pm UTC](https://forums.unrealengine.com/t/fix-white-border-around-imported-ui-elements-using-png-alpha-transparency/1968557 "2024-08-09T16:38:49Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Krabworks](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/krabworks/32/1194549_2.png) [@Krabworks](https://forums.unrealengine.com/u/Krabworks)\
**Post date:** [August 9, 2024, 4:38pm UTC](https://forums.unrealengine.com/t/fix-white-border-around-imported-ui-elements-using-png-alpha-transparency/1968557/1 "2024-08-09T16:38:49Z")

</div>

I wanted to share this just because this is something that I see dozens of threads about, all of which have completely wrong fixes suggested. Many have noticed this issue with .PNG files imported to UE after export from PS or other applications:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/9/f/69fdf8fe263e9b852f89388cdd608654fb070828.jpeg)

Jagged white borders around UI elements. I just wanted to post because there is (as far as I have seen) no thread posted with the correct fix for this issue, so hopefully this can help somebody googling the problem in the future…

First, some of the suggested fixes that I have seen in other threads which are absolutely wrong and which you should _not do_:

- Changing the pad mode from power of two
- Using a super high resolution image with altered compression settings
- Changing the filter mode to something like nearest instead of the default setting

These are all hacky fixes that will cause other issues and do not directly address the real problem. The issue is caused by the way Photoshop (and some other applications as well) handle .PNG Alpha channel on save, which is solid filled on Export. The fix is to just stop using Adobe’s problematic .PNG save as functionality and instead use something like fnord SuperPNG which has an option for Clean Transparency:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/2/e/e2ee61aa5c619f2a36093e8013e7e318c8658d1b.png)

And the completely clean result:

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/6/0/960ec66351a4b9c7bc2a41bda6bbb01aa7c7a3d8.jpeg)

Hope this helps someone 🙂

---

<div class="post-metadata">

**Author:** ![quikscoper989](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@quikscoper989](https://forums.unrealengine.com/u/quikscoper989)\
**Post date:** [January 29, 2025, 11:20pm UTC](https://forums.unrealengine.com/t/fix-white-border-around-imported-ui-elements-using-png-alpha-transparency/1968557/2 "2025-01-29T23:20:36Z")

</div>

bless your soul, i have been looking for a fix forever now ur a lifesaver

---

<div class="post-metadata">

**Author:** ![Krabworks](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/krabworks/32/1194549_2.png) [@Krabworks](https://forums.unrealengine.com/u/Krabworks)\
**Post date:** [January 29, 2025, 11:24pm UTC](https://forums.unrealengine.com/t/fix-white-border-around-imported-ui-elements-using-png-alpha-transparency/1968557/3 "2025-01-29T23:24:24Z")

</div>

Cheers 😉 I don’t have the link unfortunately but another forum poster did a good deep dive on this issue in another thread linking to this one.

---

<div class="post-metadata">

**Author:** ![Zellamic](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zellamic](https://forums.unrealengine.com/u/Zellamic)\
**Post date:** [January 30, 2025, 3:40pm UTC](https://forums.unrealengine.com/t/fix-white-border-around-imported-ui-elements-using-png-alpha-transparency/1968557/4 "2025-01-30T15:40:33Z")

</div>

I installed the plugin, but after selecting the “Save As” option and choosing SuperPNG as the file format, this line still remains. I tried enabling the “Clean Transparent” checkbox, disabling it, and switching the image channel from 8 to 16 bits per channel—nothing helped. In Unreal Engine, this white outline still appears.

This is how it looks image viewer:

 ![Hot it looks in image viewer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/1/8/9180f09cb8999414e25d512fd4f42fa26f5e45a5.png)

This is how it looks in UE5 editor:

 ![This is how it looks in UE5 editor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/c/e/1cecb2cb1a6518e572e184ebc5137c05055a1b85.png)

Everything is set to default, except compression. I set it to UserInterface2D.  
(Changing the compression does not affect this outline.)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/f/e/afe3cc3839556b6c35e1e6dd7c66d4a128f50db7.png)

---

<div class="post-metadata">

**Author:** ![4ltShift](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@4ltShift](https://forums.unrealengine.com/u/4ltShift)\
**Post date:** [February 13, 2025, 3:38pm UTC](https://forums.unrealengine.com/t/fix-white-border-around-imported-ui-elements-using-png-alpha-transparency/1968557/5 "2025-02-13T15:38:31Z")

</div>

This is because it actually is an editor problem. If you open your editor settings and just change the transparency setting under texture import to “always” and reimport the asset it should fix it - worked for me.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/0/5/605c72bdc36b4ce470d7bca71360a80e8158fb06.png)

---

<div class="post-metadata">

**Author:** ![Krabworks](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/krabworks/32/1194549_2.png) [@Krabworks](https://forums.unrealengine.com/u/Krabworks)\
**Post date:** [February 13, 2025, 5:50pm UTC](https://forums.unrealengine.com/t/fix-white-border-around-imported-ui-elements-using-png-alpha-transparency/1968557/6 "2025-02-13T17:50:33Z")

</div>

Never seen this setting before but seems awful haha

Looks like an import setting though so if you’ve imported already you’d have to re-import?

---

<div class="post-metadata">

**Author:** ![auz1111](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/auz1111/32/1071075_2.png) [@auz1111](https://forums.unrealengine.com/u/auz1111)\
**Post date:** [March 13, 2025, 11:12pm UTC](https://forums.unrealengine.com/t/fix-white-border-around-imported-ui-elements-using-png-alpha-transparency/1968557/7 "2025-03-13T23:12:10Z")

</div>

Thank you! Much better than trying to fix with material in editor.

---

<div class="post-metadata">

**Author:** ![warhulk1745](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@warhulk1745](https://forums.unrealengine.com/u/warhulk1745)\
**Post date:** [April 6, 2025, 9:10pm UTC](https://forums.unrealengine.com/t/fix-white-border-around-imported-ui-elements-using-png-alpha-transparency/1968557/8 "2025-04-06T21:10:45Z")

</div>

This should be the answer. Thank God I kept reading the comments . Thank you, kind soul. God bless you.

---

<div class="post-metadata">

**Author:** ![remster](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@remster](https://forums.unrealengine.com/u/remster)\
**Post date:** [July 8, 2025, 3:02pm UTC](https://forums.unrealengine.com/t/fix-white-border-around-imported-ui-elements-using-png-alpha-transparency/1968557/9 "2025-07-08T15:02:11Z")

</div>

Thank you. That’s the real solution!

---

<div class="post-metadata">

**Author:** ![TheAlienRelative](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheAlienRelative](https://forums.unrealengine.com/u/TheAlienRelative)\
**Post date:** [September 21, 2025, 1:59am UTC](https://forums.unrealengine.com/t/fix-white-border-around-imported-ui-elements-using-png-alpha-transparency/1968557/10 "2025-09-21T01:59:46Z")

</div>

Hi there, I’m in 5.4 and can’t see this option. Which version are you using?

---

<div class="post-metadata">

**Author:** ![TheAlienRelative](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheAlienRelative](https://forums.unrealengine.com/u/TheAlienRelative)\
**Post date:** [September 21, 2025, 2:02am UTC](https://forums.unrealengine.com/t/fix-white-border-around-imported-ui-elements-using-png-alpha-transparency/1968557/11 "2025-09-21T02:02:50Z")

</div>

In case someone else is looking for this, it’s the Editor Settings in your Project Settings.

---

<div class="post-metadata">

**Author:** ![ScarBurst\_173](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/scarburst_173/32/1006384_2.png) [@ScarBurst\_173](https://forums.unrealengine.com/u/ScarBurst_173)\
**Post date:** [October 8, 2025, 1:11am UTC](https://forums.unrealengine.com/t/fix-white-border-around-imported-ui-elements-using-png-alpha-transparency/1968557/12 "2025-10-08T01:11:25Z")

</div>

YOU! That’s all I need to say….

Wheeew…. Thank you

---

<div class="post-metadata">

**Author:** ![DredPiratRob](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DredPiratRob](https://forums.unrealengine.com/u/DredPiratRob)\
**Post date:** [November 6, 2025, 6:04pm UTC](https://forums.unrealengine.com/t/fix-white-border-around-imported-ui-elements-using-png-alpha-transparency/1968557/13 "2025-11-06T18:04:26Z")

</div>

Project Settings \> Editor \> Texture Import  
or search all settings for “infill”

---

<div class="post-metadata">

**Author:** ![RamOptimal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RamOptimal](https://forums.unrealengine.com/u/RamOptimal)\
**Post date:** [December 7, 2025, 2:33pm UTC](https://forums.unrealengine.com/t/fix-white-border-around-imported-ui-elements-using-png-alpha-transparency/1968557/14 "2025-12-07T14:33:31Z")

</div>

Best time saver. Thanks
