Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Why Your Redis Values Look Like Garbage in Every GUI (and How to Fix It)

Description and use

Redis stores raw bytes; GUIs default to UTF‑8, so Java‑serialized objects appear as garbage. Switching to a JavaSerial decoder reveals readable JSON.

Problem

Redis GUIs display Java‑serialized values as unreadable garbage because they default to UTF‑8 decoding.

Outcome

After configuring the correct decoder, Redis GUIs display Java‑serialized values as readable JSON or structured objects, eliminating the need for multi‑step workarounds.

Workflow

  • Identify the serializer used by the Java service (e.g., JdkSerializationRedisSerializer).
  • Open the Redis GUI and locate the key with garbage output.
  • Switch the GUI’s data encoding from UTF‑8 to the appropriate decoder (JavaSerial, Pickle, PhpSerial, etc.).
  • Verify the decoded value matches the expected object structure.
  • If the GUI lacks a decoder, use a dedicated tool (RedisME, RedisInsight) or write a small Java program to deserialize the bytes.
  • Store or export the decoded data for debugging or migration.

Evidence

Redis stores bytes. Types are your client's problem.

Source

\xac\xed\x00\x05sr\x00\x1dcom.example.order.OrderDetail\x00\x00\x00...

Source

RedisInsight has shipped a Java serialized objects formatter since 2.10 (September 2022)

Source

The default is still UTF-8, you have to know the feature exists to switch

Source

redis-cli --raw only turns off redis-cli's output escaping

Source

  • Record date: 2026-11-02T02:58:47.350Z