# Is there a way to convert blueprints to text, and convert text back to blueprints? 

**URL:** <https://forums.unrealengine.com/t/is-there-a-way-to-convert-blueprints-to-text-and-convert-text-back-to-blueprints/1534975>\
**Category:** Blueprint\
**Tags:** unreal-engine, question, Blueprint\
**Created:** [December 18, 2023, 6:29am UTC](https://forums.unrealengine.com/t/is-there-a-way-to-convert-blueprints-to-text-and-convert-text-back-to-blueprints/1534975 "2023-12-18T06:29:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![zyf873753](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zyf873753](https://forums.unrealengine.com/u/zyf873753)\
**Post date:** [December 18, 2023, 6:29am UTC](https://forums.unrealengine.com/t/is-there-a-way-to-convert-blueprints-to-text-and-convert-text-back-to-blueprints/1534975/1 "2023-12-18T06:29:48Z")

</div>

I want to convert the blueprints to text so that I can merge, and then convert back to the blueprints.  
I know that unreal supports converting blueprints to text([https://www.buymeacoffee.com/ryanjon2040/unreal-tip-94](https://www.buymeacoffee.com/ryanjon2040/unreal-tip-94)), but I haven’t found a way to convert text back to blueprints.

---

<div class="post-metadata">

**Author:** ![Astrotronic](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/astrotronic/32/1194566_2.png) [@Astrotronic](https://forums.unrealengine.com/u/Astrotronic)\
**Post date:** [December 18, 2023, 11:24pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-convert-blueprints-to-text-and-convert-text-back-to-blueprints/1534975/2 "2023-12-18T23:24:32Z")

</div>

Hello Zyf, Welcome to the Forums.

I’m not sure how immediately useful it would be, but try copying Blueprint nodes and pasting into a text editor to see the syntax. (I’m imagining software to ingest/merge/output nodes)

I also came across [GitHub - KennethBuijssen/MergeAssist: Unreal Engine plugin prototype which provides a way to visually merge blueprint graphs](https://github.com/KennethBuijssen/MergeAssist)

Also, just wanted to make sure you were aware that there is a BP Diff tool. (But I’m not seeing any merge functionality with it.)

 ![bpmerge](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/f/7/af7a55aba1e8cb26083b1ef9afe9c2fb156e0e02.png)

---

<div class="post-metadata">

**Author:** ![zyf873753](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zyf873753](https://forums.unrealengine.com/u/zyf873753)\
**Post date:** [December 20, 2023, 9:37am UTC](https://forums.unrealengine.com/t/is-there-a-way-to-convert-blueprints-to-text-and-convert-text-back-to-blueprints/1534975/3 "2023-12-20T09:37:11Z")

</div>

Thanks Astrotronic, I know this BP Diff tool, but it is read-only and has no merge functionality. And I’m going to try your recommended MergeAssist.  
In addition, I found that the TextAssetCommandlet in Unreal can convert asset to text, but it can not directly convert text back to the asset. Then I readed the code of it, I thought I can create a new Commandlet to convert text to the asset, the key is to use this code:

```auto
// read .utxt file
UPackage* Package = nullptr;
Package = LoadPackage(nullptr, *SourceLongPackageName, LOAD_None);

// write .uasset file
SavePackageHelper(Package, *DesFilename, RF_Standalone, GWarn, nullptr, SAVE_KeepGUID);

```

---

<div class="post-metadata">

**Author:** ![Adore019](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Adore019](https://forums.unrealengine.com/u/Adore019)\
**Post date:** [September 3, 2024, 2:39pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-convert-blueprints-to-text-and-convert-text-back-to-blueprints/1534975/4 "2024-09-03T14:39:16Z")

</div>

did you find a way yet?

---

<div class="post-metadata">

**Author:** ![doctorpepperdan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@doctorpepperdan](https://forums.unrealengine.com/u/doctorpepperdan)\
**Post date:** [September 3, 2024, 2:44pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-convert-blueprints-to-text-and-convert-text-back-to-blueprints/1534975/5 "2024-09-03T14:44:31Z")

</div>

By text do you mean a c++ file? If you right click a BP class there should be an option in there to view header fill it will show you a hypothetical. h file you could copy and paste

---

<div class="post-metadata">

**Author:** ![Cestarian](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cestarian](https://forums.unrealengine.com/u/Cestarian)\
**Post date:** [September 5, 2024, 9:22am UTC](https://forums.unrealengine.com/t/is-there-a-way-to-convert-blueprints-to-text-and-convert-text-back-to-blueprints/1534975/6 "2024-09-05T09:22:25Z")

</div>

To store blueprint in text:

1. Select all the nodes in ur blueprint, hit ctrl+c

2. open text editor, hit ctrl+v

3. save text document to whatever

To restore blueprint from text:

1. Open text document in text editor

2. Hit ctrl+a to select all, then ctrl+c to copy

3. Open a blueprint editor in unreal

4. Hit ctrl+v to paste
