Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

iftekhs's avatar
Level 13

How to change Qr code's data without changing the image.

Hi I'm trying to make something like this -> https://yokti.com/ Is it possible to edit a generated QR code's data without changing the actual image of the QR code?

0 likes
9 replies
iftekhs's avatar
Level 13

@vincent15000 Yes exactly I also think that but can you check the link I gave you. Did they do the thing that I'm trying to do or did I understand it wrong?

1 like
iftekhs's avatar
Level 13

@vincent15000 Yes I saw that the yokti website also provides a link where the data can be changed and viewed.

1 like
Snapey's avatar

@iftekhs I didn't understand. What are they doing that is so special or unique?

1 like
Snapey's avatar

@iftekhs Every QR code that they supply will have a unique ID, eg a UUID code. When you use the label and scan it, you are associating that unique UUID with the record you just created. Later you scan the same qr code and they just lookup the record by the UUID

2 likes
vincent15000's avatar

@Snapey Yes so by scanning the QR-Code, you can access to different datas according to what is stored in the database under this UUID. That's a very good trick ;).

iftekhs's avatar
Level 13

@Snapey Yes I understood it I was just wondering how your mobile scanner would give you all these data but turns put it just redirects it to their site where the data is being showed.

martinbean's avatar

@iftekhs You cant. A QR code is literally encoded data. If you change the data, the image changes.

2 likes

Please or to participate in this conversation.