EditSafely

Convert UBJSON to JSON

Convert Universal Binary JSON (UBJSON) to regular JSON.

Runs on your device, nothing uploaded

Indent
Pasted bytes are
Try:

0 chars · 0 lines

Output

Convert Universal Binary JSON (UBJSON) to regular JSON.

Open or drop a file to see the result here.

Example: Decode UBJSON bytes pasted as hex

Your files never leave this tab

Convert UBJSON to JSON is JavaScript that your browser has already downloaded, and it does the whole job on your own machine. On a normal site, an API response with live access tokens in it is sent to a server that can log it, cache it or keep it. Here it is read and transformed inside this tab and nowhere else.

  • No upload
  • No file size limit
  • Works offline once loaded
  • Nothing stored or logged

How to use Convert UBJSON to JSON

  1. 1. Add your UBJSON file or paste its bytes. Open or drop a .ubj or .ubjson file, or paste its bytes as Base64 or hex. Pasted bytes are read automatically; set Pasted bytes are to Base64 or Hex if the guess is wrong.
  2. 2. Pick the output indent. Choose 2 spaces, 4 spaces or tabs for the Indent setting to control how the decoded document is formatted once the binary structure is parsed back into text.
  3. 3. Copy the decoded JSON. Copy the resulting JSON and read it directly, or use it in your application code, now that the compact binary format has been converted back to plain, readable JSON.

When to use Convert UBJSON to JSON

Convert UBJSON to JSON decodes Universal Binary JSON, the compact binary format some game engines and embedded systems favor over text JSON, into a readable JSON document you can inspect without a UBJSON-aware library.

  • Inspecting a game asset file stored as UBJSON. A game engine stores level or asset data as UBJSON for smaller file size, and you want to see the actual values inside a specific asset file as readable JSON.
  • Verifying a UBJSON encoder's output. You wrote code that produces UBJSON and want to confirm it encoded a document correctly by decoding the result and comparing it against the expected JSON.
  • Migrating data out of a UBJSON-based system. You are moving away from a system that stored its data as UBJSON and need each file converted to JSON as part of the migration.
  • Debugging a cross-language UBJSON compatibility issue. Two implementations disagree on how a UBJSON file should decode, and converting it here gives you a reference JSON output to compare against.

Examples

Decode UBJSON bytes pasted as hex

Input

7b 69 04 6e 61 6d 65 53 69 03 41 64 61 69 03 61 67 65 69 24 7d

Output

{
  "name": "Ada",
  "age": 36
}

Decode UBJSON pasted as Base64

Input

e2kEbmFtZVNpA0FkYWkDYWdlaSR9

Output

{
  "name": "Ada",
  "age": 36
}

About the Convert UBJSON to JSON tool

Convert UBJSON to JSON does its work locally, right in the browser. Convert Universal Binary JSON (UBJSON) to regular JSON. There is no upload step, no queue and no account, and your data never travels over the network.

It belongs to the JSON Tools collection on EditSafely, a set of 90 small, focused JSON utilities that share the same instant, private workspace.

You can shape the output with 2 settings, including Indent and Pasted bytes are, and the result refreshes the moment you change one. 2 worked examples further down the page show exactly what the tool produces for real inputs.

Running locally also makes the tool fast and dependable: results appear as soon as your input does, there is no server outage that can take it down mid-task, and confidential data can be processed without a second thought.

Frequently asked questions

Is Convert UBJSON to JSON free to use?

Yes, it is completely free. All 2,943 tools on EditSafely work without an account, a subscription or usage limits.

Are my files uploaded to a server?

Everything happens locally. Your browser downloads the tool's code once, then does all the processing itself; nothing you enter is transmitted, stored or logged. You can even go offline after the page loads and it will still work.

Which files does Convert UBJSON to JSON accept?

It accepts UBJ files and UBJSON files. There is no file size cap imposed by a server; very large files are limited only by your device's memory.

Do I need to sign up or install anything?

No. The tool works in any modern browser on desktop, tablet or phone. There is no account to create, no extension to add and no software to install.

How do I use the result?

The output panel has a one-click Copy button, and Download saves the result as a file.

Related tools

All JSON Tools →